[Gambas-user] CDate Documentation

Jussi Lahtinen jussi.lahtinen at gmail.com
Sun Nov 13 23:20:54 CET 2022


If this really wasn't obvious, then here, the common way:
iTimeStamp = (iYear - 1900) * 31556926 + iMonth * 2629743 + iDay * 86400 +
and so on...

No need to put a timezone anywhere. Just like with a paper calendar. Unless
you need/want to specify it.


Jussi

On Sun, Nov 13, 2022 at 11:58 PM Jussi Lahtinen <jussi.lahtinen at gmail.com>
wrote:

>
>
>> > In other words, this is exactly equal to how a simple paper calendar
>> > works.
>>
>> I didn't know that simple paper calendars could do datetime conversions!
>> 😁
>>
>> To be serious and with apologies, I agree with Benoit - You just don't
>> seem to get it.
>>
>
>
> If I have a date "24.12.2024 12:00" in a paper calendar, then what is the
> ambiguity?
> In Gambas that can mean just about anything depending on example whether
> the date was given in winter or summer (if you live in a country which has
> different summer and winter time).
>
>
> A Date is a number and a String is a string.
>>
>
> LOL, of course. Was this really an issue?
>
>
> Jussi
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221114/fcd4877a/attachment.htm>


More information about the User mailing list