From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,cd35c069ae659c58 X-Google-Attributes: gidfc89c,public X-Google-Thread: 1014db,cd35c069ae659c58 X-Google-Attributes: gid1014db,public X-Google-Thread: f678f,cd35c069ae659c58 X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,cd35c069ae659c58 X-Google-Attributes: gidfee84,public From: gwc@root.co.uk (Geoff Clare) Subject: Re: gmtime(): Doesn't account for leap seconds?! Date: 1996/04/25 Message-ID: #1/1 X-Deja-AN: 151506867 references: <4lid0q$itq@jik.israel.net> organization: UniSoft Ltd., London, England newsgroups: comp.unix.programmer,comp.unix.osf.misc,comp.unix.osf.osf1,comp.lang.c I'm surprised nobody has mentioned the following important point yet: The POSIX no-leap-second restriction only applies to gmtime(), and to localtime() and mktime() when used with TZ=UCT0. It allows time-related functions other than gmtime() to account for leap seconds when TZ has other values (such as TZ=GMT0BST, or I think even with TZ=GMT0). -- Geoff Clare UniSoft Limited, London, England.