[BusyBox] Query about the date function

Andrew Dennison andrew.dennison at motec.com.au
Fri Jul 11 01:16:51 UTC 2003


As I understand it timezone handling is tied to your c library - thus my
comments were uClibc specific. If your using uClibc then I think it only
supports setting TZ or using /etc/TZ. I setup my /etc/TZ a month or so ago
based on information either posted on the mailing list or web site, I can't
remember which. This is a useful link on TZ that I extracted from the uClibc
mailing list archive:

http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html

Andrew

> -----Original Message-----
> From: Sid Wade [mailto:sid at vivato.net]
> Sent: Friday, 11 July 2003 10:06 AM
> To: Andrew Dennison; busybox at busybox.net
> Cc: Mark Rakes
> Subject: RE: [BusyBox] Query about the date function
>
>
> /etc/TZ???  Whazzat?
>
> This gets more and more confusing.  I've googled for info on this, and
> it looks like there are 2 items involved:  1) The symlink from
> /etc/localtime to one of the timezone files in /usr/share/zoneinfo, and
> 2) the environment variable TZ.  If I set TZ=PST8PDT, the date function
> properly shows 'PDT', but apparently this is only because the variable I
> set is in the proper name/offset/daylight-time/etc/etc format.  Setting
> TZ equal to one of the other filenames, such as 'Karachi', dumps me back
> to displaying UTC.  I'm trying to figure out just what the symlink is
> supposed to do in the grand scheme of things.  The files in
> /usr/share/zoneinfo are executables, so must be used by some function/s.
> To further confuse things, on my Redhat box, there is the same symlink
> to PST8PDT, but no TZ environment variable, and it displays date with
> PDT.
>
> In any case, thanks for your reply - I need all the help I can get :-)
>
> > -----Original Message-----
> > From: Andrew Dennison [mailto:andrew.dennison at motec.com.au]
> > Sent: Thursday, July 10, 2003 4:33 PM
> > To: Sid Wade; busybox at busybox.net
> > Cc: Mark Rakes; Dan Lohman
> > Subject: RE: [BusyBox] Query about the date function
> >
> > This works for me with busybox unstable:
> > # cat /etc/TZ
> > EST10
> > # date
> > Fri Jul 11 09:29:32 EST 2003
> > # date -u
> > Fri Jul 11 19:29:33 UTC 2003
> >
> > Andrew
> >
> > -----Original Message-----
> > From: busybox-bounces at busybox.net
> [mailto:busybox-bounces at busybox.net]On
> > Behalf Of Sid Wade
> > Sent: Friday, 11 July 2003 7:36 AM
> > To: busybox at busybox.net
> > Cc: Mark Rakes; Dan Lohman
> > Subject: [BusyBox] Query about the date function
> >
> >
> > I don't seem to be able to get anything but UTC in the timezone.  The
> link
> > from /etc/localtime is set properly, in my case to
> > /usr/share/zoneinfo/PST8PDT, but all I show is UTC.  Am I missing
> > something
> > here?
> >
> > Sid Wade
> >
>
>




More information about the busybox mailing list