This is the same answer...did you receive the last mail?:

Only one thing: in October, the change is at 2 AM
local ( 2 AM goes to 1 AM ); how this is calculated? The rule states 'at' =>
'1:00u' ( by the way, what's the "u"? ). And in March, 0 AM passes to 1 AM
(+ 1 hour).. This part I don't get it, sorry.

Regards,

Rui Fernandes

Rui Fernandes
----- Original Message -----
From: "Rick Measham" <[EMAIL PROTECTED]>
To: "Rui Fernandes" <[EMAIL PROTECTED]>
Cc: <datetime@perl.org>
Sent: Saturday, June 18, 2005 10:16 AM
Subject: Re: Understanding rules? Maybe not...


> > my $rules = [
> >   bless( {
> >     'at' => '1:00u',
> >     'from' => '1996',
> >     'in' => 'Oct',
> >     'letter' => '',
> >     'name' => 'EU',
> >     'offset_from_std' => 0,
> >     'on' => 'lastSun',
> >     'save' => '0',
> >     'to' => 'max',
> >     'type' => undef
> >   }, 'DateTime::TimeZone::OlsonDB::Rule' ),
> >   bless( {
> >     'at' => '1:00u',
> >     'from' => '1981',
> >     'in' => 'Mar',
> >     'letter' => 'S',
> >     'name' => 'EU',
> >     'offset_from_std' => 3600,
> >     'on' => 'lastSun',
> >     'save' => '1:00',
> >     'to' => 'max',
> >     'type' => undef
> >   }, 'DateTime::TimeZone::OlsonDB::Rule' )
> > ]
> > ;
> >
> > The rules, are almost readable: for instance DST will start ( even if
there's noreference to "start" ) in the last Sunday of March of any year
equal or greater than 1981. But, at what time? The rule is:
> >
> >       Continental Portugal > UTC+1 from the last Sunday in March at
01:00 to the last Sunday in October at 02:00 Europe/Lisbon
> >
> >
> > How do we figure this from the above ? - that I don't understand ( I
must be blind or tired... ); and other situations with other values occurr
with different countries.
> > Can someone explain me the calculations regarding every fields to get to
the rule FROM THE PM CITY FILE ( this is important ! )? I would appreciate
it very much - and it would save most of my time.
>
> the 'save' parameter defines how much daylight is 'saved' ... 0 hours
> from 1am the lastSun of Oct, and 1 hours from 1pm on the lastSun of March
>
> Cheers!
> Rick Measham


Reply via email to