[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [BusyBox] [OT] /bin/date and timezones
From:       Erik Andersen <andersen () codepoet ! org>
Date:       2002-07-31 1:19:03
[Download RAW message or body]

On Wed Jul 31, 2002 at 08:38:14AM +0200, Michael Sternberg wrote:
> 
> Sorry if this question is a bit out off topic.
> At least my /bin/date and /bin/hwclock are from latest CVS busybox :).
> 
> What's the best way to support timezones in embedded environment ?
> I can not afford to copy entire /usr/share/zoneinfo directory (5 Mb) to
> embedded box.
> >From the other side I want hardware clock to run in UTC and /bin/date to
> show
> time with user configured timezone offset...

Instead of using the zoneinfo crap, just be sure that the TZ
environment variable is set properly.  See 'man 3 tzset' or
read the SuSv3 docs at 
http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html

BTW, uClibc does not support the zoneinfo stuff, but
it does support TZ just fine..

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic