Date.timestamp

Date.timestamp

Date.timestamp

Function

Read the second-level Unix timestamp of the current Date.

Syntax

Parameters

No parameters.

Return value

TypeDescription
IntReturns a Unix timestamp in seconds.

Code Example

Notes

  • timestamp() reads timestamp, not creates Date. To create a Date, use from_timestamp().