[Info-vax] no timegm() funtion in C RTL ?

Michael Kraemer m.kraemer at gsi.de
Fri May 20 09:23:33 EDT 2011


In article <JGPpAFm9mWN$@eisner.encompasserve.org>,
koehler at eisner.nospam.encompasserve.org (Bob Koehler) writes:
> In article
> <338fe7d5-a78b-43a9-a56f-7c69c473053b at j23g2000yqc.googlegroups.com>, Pierre
> <pierre.bru at gmail.com> writes:
> > hi
> > 
> > I'm looking for the timegm() function in the C RTL but can not find
> > it :-/
> > http://www.codecogs.com/reference/c/time.h/ctime.php
> > 
> > is this function standard and missing in DECC or is it an exotic
> > function non standard function ?
> 
>    Maybe it's a typo?  I don't see any timegm() on that web page.  The
>    current C RTL has a fully functional gmtime().  Earlier versions
>    returned NULL, indicating that gmtime() couldn't do what you
>    asked it.
> 

man timegm

TIMEGM(3)                  Linux Programmer's Manual                 TIMEGM(3)

DESCRIPTION
       The functions timelocal() and timegm() are the inverses to localtime(3)
       and gmtime(3).

NOTES
       These functions are GNU extensions.  The timelocal() function is equiv-
       alent  to the POSIX standard function mktime(3).  There is no reason to
       ever use it.

       For a portable version of timegm() ... 

... code that has been posted here be before ...



More information about the Info-vax mailing list