linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* TZ variable setting for denx 2.4.20
@ 2005-01-06 10:04 Robin
  2005-01-06 12:12 ` Wolfgang Denk
  2005-01-19 22:11 ` annamaya
  0 siblings, 2 replies; 7+ messages in thread
From: Robin @ 2005-01-06 10:04 UTC (permalink / raw)
  To: linuxppc-embedded, Linuxppc-embedded

Hi all,
I am trying to find a way of setting TZ environment variable with DST
support for southern hemisphere countries. Its giving a strange problem.
In southern hemisphere countries, DST starts around Oct and ends around
March. The DST time seems to be applicable from Oct until Dec31,19:00hrs.
Then it reverts back to standard time.

For northern hemisphere countries, its working perfectly.(Here DST starts
around March and ends around Oct. There is no year crossing DST period.)

I am sending the system timezone at various times..

bash> export TZ="xxx5:30yyy4:30,M10.1.1,M2.1.1"
bash> date 10010159
Mon Oct  1 01:59:00 xxx 2001
bash> date
Mon Oct  1 01:59:47 xxx 2001
bash> date
Mon Oct  1 03:00:10 yyy 2001
bash> date 12311900
Mon Dec 31 19:00:00 yyy 2001
bash> date 12311959
Mon Dec 31 18:59:00 xxx 2001 <----------- problem. It should have
reverted to xxx only in feb.

Please give me some idea for setting time zone for southern hemisphere
countries.

I am using 2.4.20 linux kernel from denx.I am running date command from
busybox version 0.6 which in is using strftime. The processor is ppc860T.

Regards,
Robin Mathew

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-01-19 22:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-06 10:04 TZ variable setting for denx 2.4.20 Robin
2005-01-06 12:12 ` Wolfgang Denk
2005-01-06  1:33   ` Robin
2005-01-06 13:56     ` Marius Groeger
2005-01-07  7:28       ` Robin
2005-01-09  3:30         ` Tony Lee
2005-01-19 22:11 ` annamaya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).