parseTimePrecision
The parseTimePrecision
method returns an Enum
indicating the level of precision in a time, date-time, or period nanos string. See ChronoField for a full list of Enums.
Syntax
parseTimePrecision(s)
Parameters
Parameter | Type | Description |
---|---|---|
s | string | The time or date-time to evaluate. |
Returns
An enum indicating the evaluated string's level of precision.
Examples
time1 = parseTimePrecision("1")
time2 = parseTimePrecision("10:00:00")
time3 = parseTimePrecision("10:00:00.00")
println time1
println time2
println time3
- Log