[tz] question regarding 'timezone' variable

Paul Eggert eggert at cs.ucla.edu
Tue Sep 1 17:40:45 UTC 2015


On 09/01/2015 09:45 AM, Christos Zoulas wrote:
> The NetBSD _z changes added strftime_z and strftime_lz. Shouldn't those be
> adopted too? If not, why?

They're not needed on systems that have tm_gmtoff and tm_zone, as 
strftime can and should consult those struct tm members instead of 
consulting any separate timezone_t type.

Systems that lack tm_gmtoff and tm_zone can't possibly be thread-safe in 
the presence of multiple time zones anyway, so we don't need to worry 
about adding strftime_z and strftime_lz to such systems.


More information about the tz mailing list