rules. timestamp
Globally available timestamp functions. These functions are accessed
using the timestamp.
prefix.
Methods
date
date(year, month, day) returns rules.Timestamp
Make a timestamp from a year, month, and day.
Parameter |
|
---|---|
year |
The year. Value must not be null. |
month |
The month. Value must not be null. |
day |
The day. Value must not be null. |
- Returns
-
non-null rules.Timestamp
a timestamp.
Example
// Timestamp for 1984-01-02T00:00:00Z
timestamp.date(1984, 1, 2);
value
value(epochMillis) returns rules.Timestamp
Make a timestamp from an epoch time in milliseconds.
Parameter |
|
---|---|
epochMillis |
Time since the epoch in ms. Value must not be null. |
- Returns
-
non-null rules.Timestamp
a timestamp.