public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* Timezones in <+-nn> format are not handled
@ 2022-03-15 14:23 Andreas Merkle
  2022-03-15 15:47 ` Joshua Westerheide
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Merkle @ 2022-03-15 14:23 UTC (permalink / raw)
  To: newlib

Posix timezone strings are in the format ABRVnn[ABRV[nn]][,...], e.g. 
GMT0BST,... is London TZ descriptor with two abbreviations GMT and BST.
ABRV means abbreviation. Such abbreviations are not defined for every 
timezone around the world.
According to https://data.iana.org/time-zones/theory.html if there is no 
common English abbreviations, use offsets like -05 and +0530 that are 
generated by zic's %z notation.
These numeric offsets are enclosed between <...>. For example, 
abbreviation for Sao Paulo TZ is <-03>3 (instead of e.g. valid SAOPAUL03).

A pull request for the newlib-xtensa version by earlephilhower fixes 
this: https://github.com/earlephilhower/newlib-xtensa/pull/14
I would like to provide the corresponding patch here if its ok?

Andi


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-16 20:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-15 14:23 Timezones in <+-nn> format are not handled Andreas Merkle
2022-03-15 15:47 ` Joshua Westerheide
2022-03-15 23:05   ` Andreas Merkle
2022-03-16 20:40     ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).