lua-users home
lua-l archive

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

On Tue, Feb 28, 2012 at 10:11, Vladimir Dronnikov <> wrote:
> I wonder what are the reasons `'*t')` doesn't report `tm_gmtoff` field?
> Are they only that the latter is glibc extension?

Yup, not a standard.

long int tm_gmtoff
This field describes the time zone that was used to compute this
broken-down time value, including any adjustment for daylight saving;
it is the number of seconds that you must add to UTC to get local
time. You can also think of this as the number of seconds east of UTC.
For example, for U.S. Eastern Standard Time, the value is -5*60*60.
The tm_gmtoff field is derived from BSD and is a GNU library
extension; it is not visible in a strict ISO C environment.