parseZonedDateTime
The parseZonedDateTime
method parses the supplied string as a time zone.
Date-time strings are formatted according to the ISO-8601 format yyyy-MM-ddThh:mm:ss[.SSSSSSSSS] TZ
and others.
Syntax
parseZonedDateTime(s)
Parameters
Parameter | Type | Description |
---|---|---|
s | string | The string to be converted. |
Returns
A ZonedDateTime.
Examples
println parseZonedDateTime("1982-09-23T11:23:00 ET")
- Log