Interface: Timestamp

Methods

date

date() returns rules.Timestamp

Timestamp value containing year, month, and day only.

Returns

non-null rules.Timestamp The timestamp.

day

day() returns rules.Integer

Get the day value of the timestamp.

Returns

non-null rules.Integer day value.

dayOfWeek

dayOfWeek() returns rules.Integer

Get the day of the week as a value from 1 to 7.

Returns

non-null rules.Integer the day of the week.

dayOfYear

dayOfYear() returns rules.Integer

Get the day of the year as a value from 1 to 366.

Returns

non-null rules.Integer the day of the year.

hours

hours() returns rules.Integer

Get the hours value of the timestamp.

Returns

non-null rules.Integer hours value.

minutes

minutes() returns rules.Integer

Get the minutes value of the timestamp.

Returns

non-null rules.Integer minutes value.

month

month() returns rules.Integer

Get the month value of the timestamp.

Returns

non-null rules.Integer month value.

nanos

nanos() returns rules.Integer

Get the nanos value of the timestamp.

Returns

non-null rules.Integer nanos value.

seconds

seconds() returns rules.Integer

Get the seconds value of the timestamp.

Returns

non-null rules.Integer seconds value.

time

time() returns rules.Duration

Get the duration value from the time portion of the timestamp.

Returns

non-null rules.Duration duration value.

toMillis

toMillis() returns rules.Integer

Get the time in milliseconds since the epoch.

Returns

non-null rules.Integer time in milliseconds.

year

year() returns rules.Integer

Get the year value of the timestamp.

Returns

non-null rules.Integer year value.