parseEpochNanos
parseEpochNanos
converts a string string argument to nanoseconds since the Epoch.
Date-time strings are formatted according to the ISO 8601 date time format yyyy-MM-ddThh:mm:ss[.SSSSSSSSS] TZ
and others. Additionally, date time strings can be integer values that are nanoseconds, milliseconds, or seconds from the Epoch. Expected date ranges are used to infer the units.
Syntax
parseEpochNanos(s)
Parameters
Parameter | Type | Description |
---|---|---|
s | string | The string to be converted. |
Returns
Nanoseconds since the Epoch.
Examples
parse1 = parseEpochNanos("2022-01-01T12:34:56 ET")
parse2 = parseEpochNanos("2012-01-01T12:34:56 ET")
println parse1
println parse2
- Log