[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] timezone change



On 2000-4-3, Petr Stehlik <joy@sophics.cz> wrote:

> I thought something like 'UTC_OFFSET=-3600' in the MINT.CNF
> would be sufficient.  And I would just change this line twice
> a year (DST) to -2 (spring) and then back to -1 (autumn).

Using an environment string, instead of a timezone database,
would work, but only if you give it the full details:

TZ=+3EET+2EEST,M3.5.0,M10.5.0

This string gives two informations:

a) Both timezones' names and UTC offset.

   The zone names could be arbitrary values only exported as
   strings to apps that need to know where they reside.
   The only part of this section the kernel needs to know is
   how many hours of offset to UTC for each of those zones.

b) On which day to shift the clock, for each zone.

Of course, using a timezone database might have advantages that
are not so obvious to us.  Perhaps Guido can explain why a
timezone database is better.

-- 
Martin-Éric Racine  http://funkyware.atari.org/  Atari TT030 FAQ
Lappeenranta, Finland.  Surfing on a Intel/Microsoft-free GEM OS