Am 03.10.20 um 22:36 schrieb Ryan Joseph via fpc-pascal:

On Oct 3, 2020, at 2:15 PM, Winfried Bartnick via fpc-pascal 
<fpc-pascal@lists.freepascal.org> wrote:

Hi!


Timezones are handled by the package PascalTZ.

It is available through the Online Package Manager.

Winni
Thanks. I think the format I had was ISO8601 but had decimal precision for the 
seconds. According to the spec I was following I didn't see any timezones, just 
a local time with an offset from UTC. I don't understand why this is preferable 
to timezones however. It's all very confusing if you ask me.

Regards,
        Ryan Joseph

Hi!

If you have Time offset to UTC then you have all you need - from the technical poin of view.

But there are complications due to daylight saving.

In the summertime Central Europe is 2 hours away from UTC.  In winter only one.

Not enough trouble : There are a lot of algorithms for begin and end of the different countries.

And in the southern half of the globe, the start the daylight saving, when we end it.

That is what PascalTZ can do for you.

Or you do it like the flight buisiness.

All times for the pilots are UTC. And for the passengers this is converted to the local time. Avoids crashes.

And due to political decissions there is a lot of nonsense.

Example very #1: Hawai and Kiribati are around the same longitude.

Hawai is TZ -10. But Kiribati is TZ +14. So they are allways 24 hours ahead. Non-sense.


O Lord - don't ask me questions ...

Winni





_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to