Reference

Timestamp

Now
Output A timestamp instance with current date and time in the local time zone.
To ISO
Input A timestamp instance.
Output A string representation of the timestamp in ISO 8601 format.
From ISO
Input A string representation of a timestamp in ISO 8601 format.
Output A timestamp instance.
Year
Input A timestamp instance.
Output The year of the timestamp.
Month
Input A timestamp instance.
Output The month of the timestamp (1-12).
Day
Input A timestamp instance.
Output The day of the timestamp (1-31).
Hour
Input A timestamp instance.
Output The hour of the timestamp (0-23).
Minute
Input A timestamp instance.
Output The minute of the timestamp (0-59).
Second
Input A timestamp instance.
Output The second of the timestamp (0-59).
Millisecond
Input A timestamp instance.
Output The millisecond of the timestamp (0-999).
Epoch
Input A timestamp instance.
Output The number of milliseconds since the Unix epoch.
Compare
Input Two timestamp instances.
Output 1 if the first timestamp is bigger than the second. -1 if it is the smaller. 0 if they are equal.