diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2024-09-18 17:05:51 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2024-09-18 17:05:51 +0000 |
commit | a385d0fa991a5b2f55c972b6cdda2ab6b3f41332 (patch) | |
tree | 109d598225b54c3478765017dcb20bdc91cbb082 /usr.sbin/zic/zic.8 | |
parent | b1842e3777122128fe2ef6ea83b64e99e348dc98 (diff) |
zic: cherrypick support for %z in time zone formats
This extends the zic input format to add support for %z, which
expands to a UTC offset in as-short-as-possible ISO 8601 format.
It's intended to better support zones that do not have an established
abbreviation already. tzdata2024b and higher require a version of
zic that supports the %z format. From upstream tzcode. OK beck@
Diffstat (limited to 'usr.sbin/zic/zic.8')
-rw-r--r-- | usr.sbin/zic/zic.8 | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/usr.sbin/zic/zic.8 b/usr.sbin/zic/zic.8 index 0ed93b54155..4b0ebdf2391 100644 --- a/usr.sbin/zic/zic.8 +++ b/usr.sbin/zic/zic.8 @@ -1,5 +1,5 @@ -.\" $OpenBSD: zic.8,v 1.5 2022/03/31 17:27:32 naddy Exp $ -.Dd $Mdocdate: March 31 2022 $ +.\" $OpenBSD: zic.8,v 1.6 2024/09/18 17:05:50 millert Exp $ +.Dd $Mdocdate: September 18 2024 $ .Dt ZIC 8 .Os .Sh NAME @@ -240,6 +240,19 @@ The pair of characters is used to show where the .Dq variable part of the time zone abbreviation goes. +Alternately, a format can use the pair of characters +.Em %z +to stand for the UTC offset in the form +.No \(+- Ns Em hh , +.No \(+- Ns Em hhmm , +or +.No \(+- Ns Em hhmmss , +using the shortest form that does not lose information, where +.Em hh , +.Em mm , +and +.Em ss +are the hours, minutes, and seconds east (+) or west (\(mi) of UTC. Alternately, a slash .Pq \&/ |