Reference

Timestamp

Now
Output A timestamp instance with current date and time in the UTC time.

Signature

Example

To ISO
Input A timestamp instance.
Output A string representation of the timestamp in ISO 8601 format.

Signature

Example

From ISO
Input A string representation of a timestamp in ISO 8601 format.
Output A timestamp instance.

Signature

Example

Year
Input A timestamp instance.
Output The year of the timestamp.

Signature

Example

Month
Input A timestamp instance.
Output The month of the timestamp (1-12).

Signature

Example

Day
Input A timestamp instance.
Output The day of the timestamp (1-31).

Signature

Example

Hour
Input A timestamp instance.
Output The hour of the timestamp (0-23).

Signature

Example

Minute
Input A timestamp instance.
Output The minute of the timestamp (0-59).

Signature

Example

Second
Input A timestamp instance.
Output The second of the timestamp (0-59).

Signature

Example

Millisecond
Input A timestamp instance.
Output The millisecond of the timestamp (0-999).

Signature

Example

Epoch
Input A timestamp instance.
Output The number of milliseconds since the Unix epoch.

Signature

Example

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.

Signature

Example