public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12747] New: RFE: New time zone conversion specifier character
@ 2011-05-10 17:34 myllynen at redhat dot com
  2011-05-10 20:43 ` [Bug libc/12747] " drepper.fsp at gmail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: myllynen at redhat dot com @ 2011-05-10 17:34 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12747

           Summary: RFE: New time zone conversion specifier character
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: myllynen@redhat.com


Some countries [1] have recommendations that time zone should be presented for
example as UTC+2 or UTC-3. This is also the format lots of web sites are using
today (although some of them use GMT instead of UTC).

Would it be possible to add a conversion specifier character which would emit
just the offset in hours without leading/trailing zeroes when possible? In case
of half hours a flag to indicate the hour separator would be used.

For example, if the conversion specifier character would be %f then one would
get with "%f"

-7

in a time zone being UTC-7 and with "%.f" one would get

+5.30

in a time zone UTC+5:30. This would be easier to read than what is available
now with %z. In some applications the space for time zone is very limited so
this compact format would also help there (think of UTC+0200 vs UTC+2).

1) Finland is one example of such a recommendation, for reference see

http://kotoistus.fi/suositukset/vahv_kalenterit_cldr1_4.htm#Kellonajat

Thanks.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2015-08-27 22:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-10 17:34 [Bug libc/12747] New: RFE: New time zone conversion specifier character myllynen at redhat dot com
2011-05-10 20:43 ` [Bug libc/12747] " drepper.fsp at gmail dot com
2012-05-18  7:29 ` myllynen at redhat dot com
2012-05-19  1:08 ` bugdal at aerifal dot cx
2013-06-17 14:09 ` myllynen at redhat dot com
2013-10-09  8:15 ` neleai at seznam dot cz
2013-10-09  8:19 ` myllynen at redhat dot com
2013-10-09  8:20 ` myllynen at redhat dot com
2013-10-15 14:34 ` myllynen at redhat dot com
2014-06-27 13:22 ` fweimer at redhat dot com
2015-08-27 22:05 ` [Bug time/12747] " jsm28 at gcc dot gnu.org

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).