|Top Previous Next|
Provides static functions for manipulating date & time.
In CellScript, date and time are represented as a number -- the number of seconds since midnight, January 1, 1980. The DateTime object provides functions which allow you to easily convert between date/time values and the normal date and time components (year, month, hour, etc.).
A date/time value is considered just a date if its time components are set to zero, which is equivalent to midnight. It is considered just a time if its date components are set to zero, which makes the value equal to the number of seconds after midnight.