Date: Sat, 02 Aug 2003 02:14:13 GMT
I'm trying to come up with some way of determining the
user's standard timezone (as +/- seconds from UTC0) which
is portable between different variants of Unix.
Under Linux glibc I can call localtime(...) and the global
library variable "timezone", defined as a long integer,
is filled in with this information. But that doesn't
appear to be the case for FreeBSD and probably other
Unix variants. At least for some versions of BSD,
"timezone" appears to be a function of some sort.
Any ideas will be appreciated. Thanks.
- Re: Does Germany turn their clocks ahead One Hour this weekend?
... More recent versions of UNIX know about it. ... they only display Coordinated Universal Time ... defined in the user environment. ... done reading the zic-compiled timezone info. ...
- Setting windows/win32 timezone from python
... an arbitrary timezone. ... To do this on UNIX is relatively straightforward by setting the TZ ... the mapping from utc -> local time won't have the correct ...
- Re: Setting up timezone in Unix on Mainframe
... Alan ... Setting up timezone in Unix on Mainframe ...
- Re: Oracle - DST 2007 heads up
... Look at OpenVMS; if timezones would have been in the mind of the original engineers then every call to SYS$ASCTIM in DCL) would also return a TIMEZONE. ... Unfortunately timezone support was grafted onto many OSs when POSIX support was added. ... p.s. OpenVMS is about 7 years younger than UNIX and yet UNIX seems to do timezones better than any other OS. ...
- OT: Re: Need a favour from EVERYONE in ASP newsgroup
... Technically DOS is a unix variant. ... Linux is similar to Unix. ... The *internals* of these variants are also very different - if you want to be a kernel hacker, you'll have to learn the kernel code of a specific system because the guts of these systems are very different. ...