TZTimeOnly fields contain a time with a timezone offset, in an ISO 8601 format.
The format is HH:MM[:ss][Z|[+|–hh[:mm]]] where square brackets denote optionality, and a pipe denotes a choice.
Code | Meaning | Valid range |
---|---|---|
HH | Hour of day | 00-23 |
MM | Minute of hour | 00-59 |
ss | Second of minute | 00-59 |
hh | Offset hours | 00-12 |
mm | Offset minutes | 00-59 |
: | Literal value serving as a separator | |
Z | Literal value denoting UTC | |
+ | Literal value a positive offset from UTC | |
- | Literal value a negative offset from UTC |
Example | Valid | Notes |
---|---|---|
01:02Z | ||
01:02:03Z | ||
01:02:03+01 | ||
01:02:03+01:00 | ||
01:02:03-01:00 | ||
01:02:03+01:30 | ||
01:02:03 | No offset |