[BusyBox] [OT] /bin/date and timezones
Erik Andersen
andersen at codepoet.org
Wed Jul 31 01:19:03 UTC 2002
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--
More information about the busybox
mailing list