[Gambas-user] Daylight "saving" and time zones

Benoît Minisini g4mba5 at gmail.com
Sun Oct 27 23:51:47 CET 2019


Le 27/10/2019 à 22:19, Jussi Lahtinen a écrit :
> 
>     This is what I want in essense:
> 
>     ? date(2019,10,27,2,3, "UTC")
>     10/27/2019 02:03:00
> 
>     ? cstr(date(2019,10,27,2,3, "UTC"))
>     10/27/2019 02:03:00
> 
>     In other words, if I write date 27.10.2019 and time 2:03, it should
>     be just that and nothing else. I don't want to make guesses where
>     the user might travel or when there might be other sudden changes in
>     the time zone. System.timezone is not useful here, because it is not
>     constant.
> 

You are plain wrong. A date is not a duration, it's an instant. Without 
a time zone, it means nothing.

-- 
Benoît Minisini


More information about the User mailing list