[PING^2] RFC [PATCH] BZ#1077902: New API gettimezone

P J P pj.pandit@yahoo.co.in
Tue Apr 29 19:52:00 GMT 2014


  Hi,

> On Tuesday, 29 April 2014 8:41 PM, Paul Eggert wrote:
> Not really.  Sometimes it works, but sometimes it's completely wrong.

  I see. Do we know why is it completely wrong, when it is wrong? Do you have an example when it is completely wrong? That'll help to debug the issue.

Because if without the TZ string or with TZ=UTC0, <time.h> APIs can provide accurate UTC times, then all TZ definition helping us with is the offsets and time frame within an year.

> If *that* is good enough, then there's no need to change the API.  Just 

> set TZ to "UTC0".  Done.  Which is what apps have done for decades.

  No! I said UTC is reasonable when the TZ string is absent from the time zone file. Ie. it is the *last* resort, when no other option is *available/possible*.

---

Regards
   -Prasad
http://feedmug.com



More information about the Libc-alpha mailing list