lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> If you carefully read the following discussion:
> http://stackoverflow.com/questions/19170721/real-time-awareness-of-timezone-change-in-localtime-vs-localtime-r
> [...]

As far as the official documentation goes, 'tzset' is not garanteed to
be reentrant. Therefore, automatically calling 'tzset' everytime you
are going to call 'localtime_t' seems to defeat the whole point of
using 'localtime_t' (instead of 'localtime').

-- Roberto