[Gambas-user] CDate Documentation

Jussi Lahtinen jussi.lahtinen at gmail.com
Wed Nov 16 14:52:15 CET 2022


>
> No. It is not converted to UTC or local time in any way.
>
> The datatype 'Date' in Gambas is a point in time, aka just a number.
> It's for example 2022.11.16 13:10:00 stored as floating point.
>
> There's no additional information at all. So there is no further
> information about a timezone or whether it is UTC.
>
> Your program must decide whether it considers it being UTC or any local
> time. I think that's pretty simple and ingenious, by the way.
>

That is not true.
The float value corresponds to the date in UTC. If you do not believe me,
then test it. Give local date (in area of UTC+X, where X<>0) and you will
see that the date without localization is printed as the date-X.

Jussi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221116/d6da931a/attachment.htm>


More information about the User mailing list