epochMillis

Returns milliseconds from the Epoch for a date-time value.

Syntax

Parameters

ParameterTypeDescription
instantInstant

Instant to compute the Epoch offset for.

dateTimeZonedDateTime

ZonedDateTime to compute the Epoch offset for.

Returns

Milliseconds from the Epoch.

Examples