Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
titleCode Examples
Code Block
languagepy
titleCode Snippet
# This example would grab the current time and print the current month.
 
date = system.date.now()
print system.date.getMonth(date) #This# This would print the current month.
Panel
Code Block
languagepy
titleCode Snippet
# This example would create a date object and print out the quarter of that date.
 
date = system.date.getDate(2017, 3, 15) # #ThisThis would print "Sat Apr 15 00:00:00 PDT 2017"
print system.date.getQuarter(date) # This will print 2

...