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

Benoît Minisini g4mba5 at gmail.com
Sun Apr 8 08:31:20 CEST 2018


Le 08/04/2018 à 02:09, Jussi Lahtinen a écrit :
> Hmmm... no. Of course Val cannot read US format in Finland. And there 
> isn't another method to read it as local time.
> /
> 'If you have a string that you know it is a date/time in local timezone 
> (daylight saving is automatically added by the system to the local 
> timezone, i.e. daylight saving "changes" the timezone), then you must 
> use Val() to convert it to a Date type.'/
> 
> No, you can't, because Val fails when switching a language, which I just 
> recalled with my non working workaround.
> 
> My case is really simple. If I want alarm at "10.10.2018 12:00", I want 
> it to be written in file as "10.10.2018 12:00" and independently of 
> where I am, I should see the alarm, when my computer clock shows 
> "10.10.2018 12:00". IE always assume local time.
> 
> 
> Jussi
> 

Of course: as you use your own date format, and not the date format of 
the locale, you have to write your own string to date conversion routine.

-- 
Benoît Minisini


More information about the User mailing list