Static
createStatic
isReturns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.
IANAZone.isValidSpecifier("America/New_York") //=> true
IANAZone.isValidSpecifier("Sport~~blorp") //=> false
This method returns false for some valid IANA names. Use isValidZone instead.
The string to check validity on
Static
isReturns whether the provided string identifies a real zone
IANAZone.isValidZone("America/New_York") //=> true
IANAZone.isValidZone("Fantasia/Castle") //=> false
IANAZone.isValidZone("Sport~~blorp") //=> false
The string to check
Static
resetGenerated using TypeDoc
A zone identified by an IANA identifier, like America/New_York
Implements