Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Timezone adjustment (tzfile format question)
@ 2002-03-25 20:38 Dub
  2002-03-26 16:34 ` Johan Danielsson
  2002-03-26 17:47 ` Martin Moore
  0 siblings, 2 replies; 3+ messages in thread
From: Dub @ 2002-03-25 20:38 UTC (permalink / raw)


Hi,

I'm not sure how to set the exact moment of enabling/disabling
daylight settings.

man page for tzfile(4) tells that component 'time' of environment
variable TZ
'Describes the time when, __in current time__, the change to or return
from      alternative time occurs'.

Let's take a definition from time zone source file
/etc/zoneinfo/sources/europe

Rule    E-Eur   1981    max     -       Mar     lastSun  3:00s  1:00  
 " DST"
Does it mean that local time at 2:59:59 EET will jump to 4:00:00 EET
DST?

Rule    E-Eur   1996    max     -       Oct     lastSun  3:00s  0     
 -
Does it mean that local time at 3:59:59 EET DST will jump to 3:00:00
EET?


Many thanks in advance for your comments! 

BR, 
Dub


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

* Re: Timezone adjustment (tzfile format question)
  2002-03-25 20:38 Timezone adjustment (tzfile format question) Dub
@ 2002-03-26 16:34 ` Johan Danielsson
  2002-03-26 17:47 ` Martin Moore
  1 sibling, 0 replies; 3+ messages in thread
From: Johan Danielsson @ 2002-03-26 16:34 UTC (permalink / raw)


dub@latnet.lv (Dub) writes:

> Let's take a definition from time zone source file
> /etc/zoneinfo/sources/europe

The information in the zoneinfo files are not directly related to what
you put in TZ to specify zone info. In practice you'd copy your
relevant zoneinfo file to /etc/localtime and forget about TZ, or if
you want to override it on application basis set TZ to :Europe/Riga or
something similar (probably :EET since you seem to not run 5.x).

> Rule    E-Eur   1981    max     -       Mar     lastSun  3:00s  1:00  
>  " DST"
> Does it mean that local time at 2:59:59 EET will jump to 4:00:00 EET
> DST?

> Rule    E-Eur   1996    max     -       Oct     lastSun  3:00s  0     
>  -
> Does it mean that local time at 3:59:59 EET DST will jump to 3:00:00
> EET?

Yes, see zic(1).

/Johan


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

* Re: Timezone adjustment (tzfile format question)
  2002-03-25 20:38 Timezone adjustment (tzfile format question) Dub
  2002-03-26 16:34 ` Johan Danielsson
@ 2002-03-26 17:47 ` Martin Moore
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Moore @ 2002-03-26 17:47 UTC (permalink / raw)


dub@latnet.lv (Dub) wrote in message news:<6445524b.0203251238.73ee489@posting.google.com>...
> Hi,
> 
> I'm not sure how to set the exact moment of enabling/disabling
> daylight settings.
> 
> man page for tzfile(4) tells that component 'time' of environment
> variable TZ
> 'Describes the time when, __in current time__, the change to or return
> from      alternative time occurs'.
> 
> Let's take a definition from time zone source file
> /etc/zoneinfo/sources/europe
> 
> Rule    E-Eur   1981    max     -       Mar     lastSun  3:00s  1:00  
>  " DST"
> Does it mean that local time at 2:59:59 EET will jump to 4:00:00 EET
> DST?
> 
> Rule    E-Eur   1996    max     -       Oct     lastSun  3:00s  0     
>  -
> Does it mean that local time at 3:59:59 EET DST will jump to 3:00:00
> EET?
> 
> 
> Many thanks in advance for your comments! 
> 
> BR, 
> Dub

You are correct.  The "s" suffix in "3:00s" means use standard time, i.e.,
change at 0300 local standard time. If you use the "w" suffix, or no
suffix, it means use "wall clock" time, i.e., current local time.

The man page for zic(8) is a little more informative than the one for
tzfile(4).

Martin


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

end of thread, other threads:[~2002-03-26 17:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-25 20:38 Timezone adjustment (tzfile format question) Dub
2002-03-26 16:34 ` Johan Danielsson
2002-03-26 17:47 ` Martin Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox