Namespace: timestamp

Methods

date

static

date(year, month, day) returns rules.Timestamp

Make a timestamp from a year, month, and day.

Parameter

year

rules.Integer

The year.

Value must not be null.

month

rules.Integer

The month.

Value must not be null.

day

rules.Integer

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

static

value(epochMillis) returns rules.Timestamp

Make a timestamp from an epoch time in milliseconds.

Parameter

epochMillis

rules.Integer

Time since the epoch in ms.

Value must not be null.

Returns

non-null rules.Timestamp a timestamp.