epochAutoToInstant
epochAutoToInstant
converts an offset from the Epoch to an Instant.
Syntax
epochAutoToInstant(epochOffset)
Parameters
Parameter | Type | Description |
---|---|---|
epochOffset | long | The time offset from the Epoch. Can be in milliseconds, microseconds, or nanoseconds. Expected date ranges are used to infer the units for the offset. |
Returns
An Instant.
Examples
nanos = epochAutoToInstant(1672594496)
println nanos
- Log
nanos = epochAutoToInstant(1672594496000)
println nanos
- Log
nanos = epochAutoToInstant(1672594496000000)
println nanos
- Log