SunOS and timelocal, timegm, tzsetwall

Jonathan Leffler jonathan.leffler at
Fri Jan 11 06:13:09 UTC 2008

In Makefile (for tzcode2007k), there are the comments:

# Sun has provided "tzsetwall", "timelocal", and "timegm" in SunOS 4.0.
# These functions may well disappear in future releases of the time
# conversion package.

For Solaris 8 (SunOS 5.8) and Solaris 10 (SunOS 5.10), neither the standard
C library nor any other shared library in /lib or /usr/lib defines or
references tzsetwall, timelocal or timegm -- the functions no longer exist
in Solaris.  I was checking on SPARC rather than Intel, but I would not
expect that to matter in practice.

You can, however, find references for these functions for Solaris 2.5 (aka
SunOS 5.5) and Solaris 2.6 (SunOS 5.6) if you Google "site:sun.comtzsetwall" - (
2.5:; 2.6:
Interestingly, there is a Solaris 8 manual page ( that
mentions tzsetwall (but not timegm or timelocal), but I still can't find the
function in any of the shared libraries on a representative Solaris 8
machine.  There is a 'Solaris 8 Transition Guide' at which mentions
all three - describing their replacements.

Jonathan Leffler <jonathan.leffler at>  #include <disclaimer.h>
Guardian of DBD::Informix - v2007.0914 -
"Blessed are we who can laugh at ourselves, for we shall never cease to be
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the tz mailing list