[Gambas-user] CDate Documentation
Jussi Lahtinen
jussi.lahtinen at gmail.com
Wed Nov 16 15:06:42 CET 2022
"Internally, the date is stored in UTC."
- Benoît Minisini Sun, Oct 27, 2019, 8:26 PM
Jussi
On Wed, Nov 16, 2022 at 3:52 PM Jussi Lahtinen <jussi.lahtinen at gmail.com>
wrote:
> 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/923e7122/attachment.htm>
More information about the User
mailing list