unix timestamp
the unix timestamp of a datetime
(datetime subject, string unit) -> long
Returns the unix timestamp - number of seconds/milliseconds since 1970-01-01T00:00:00@UTC
- for the given subject
Returns nil
if any argument is nil
Parameters
Name | Type | Description |
---|---|---|
subject |
datetime | The datetime to work with |
unit |
string |
Specifies timestamp resolution
|