[Gambas-user] CDate Documentation

Benoit Minisini benoit.minisini at gambas-basic.org
Tue Nov 15 16:59:19 CET 2022

Le 15/11/2022 à 16:29, Jussi Lahtinen a écrit :
>      > Let's say I have a date variable, which contains my chosen date
>      > "something 12:00", which internally (IE in UTC) is "something
>     10:00" *(in
>      > reality of course as float).*
>     No, Gambas "Dates" are not "internally UTC" at all.
>     Again, Gambas "Dates" are not dates, they are timestamp, i.e.
>     *points in
>     time*.
> You insist on this point again and again, but I have never made it!!! 

That's exactly the problem.

> Please re-read what I actually wrote.
> The timestamp is in float, but it corresponds to UTC time.
>     Here is a similar confusion with strings and charsets.
> Yeah, and this would make strings quite useless in Gambas. This really 
> is a similar issue to the date datatype.
> Jussi

After having written thousands of lines of code in Gambas for 
applications sold to dozen of clients having completely different 
activities and using it daily with millions of objects, I'm relatively 
confident that the way strings and dates work in Gambas is perfectly 
useful and valid.

I'm not arguing with you. I'm just trying to explain you how it 
*actually* works, because you seems to not get it and try to twist the 
Date datatype in a way that can't work.

Benoît Minisini.

More information about the User mailing list