[Gambas-user] Different quantities of seconds from UNIX date...

Benoît Minisini g4mba5 at gmail.com
Sat Apr 7 18:19:48 CEST 2018


Le 07/04/2018 à 15:45, Jussi Lahtinen a écrit :
> I really think the time zone should be optional argument for these 
> functions. I have constant troubles to understand how and what time 
> functions should be used. Really really unintuitive.
> In my GAlarm project, when I finally got everything working, I noticed 
> that the "daylight saving time" fucks up all the alarm times by hour. No 
> idea how to fix.
> 
> 
> Jussi
> 

It's simple: non localized date functions interpret string dates as UTC 
(CDate, CStr), whereas localized date functions (Val, Str, Format, Date) 
interpret string dates as being in local timezone.

Internally dates are absolute, and stored in UTC.

Regards,

-- 
Benoît Minisini


More information about the User mailing list