[Gambas-user] forcing time zone localization

Benoît Minisini gambas at ...1...
Sun Feb 3 14:11:53 CET 2013


Le 03/02/2013 14:03, Benoît Minisini a écrit :
>
> To get the current timezone, you do Round(Frac(Date(Now)) * 24). Then
> you can use this value to convert a date to/from UTC.
>
> Regards,
>

So scatterbrained... I have added System.TimeZone property for a while. 
It returns the interval with UTC in seconds (for example, -3600 in 
France currently).

Regards,

-- 
Benoît Minisini




More information about the User mailing list