[Gambas-user] CDate Documentation
Jussi Lahtinen
jussi.lahtinen at gmail.com
Sun Nov 13 00:47:16 CET 2022
>
> > 2. The UTC-Offset is always the current UTC-Offset - even if the offset
> > at given date/point of time is supposed to be different.
> > Example for the time zone Berlin/Germany:
> > Print CDate("11/11/2022 13:00:00") -> 11.11.2022 14:00:00
> > Print CDate("08/11/2022 13:00:00") -> 11.08.2022 14:00:00 (should
> > actually be 15:00:00)
> > I don't regard this as a bug, but it is important to know. An according
> > information would be helpful.
>
> Indeed. I don't know if there is some code somewhere in the OS that can
> take into account every time zone change at any time in any country. I
> don't think so!
>
This could be fixed as suggested several times; assume the user is always
correct. IE no conversions.
So you would simply get what you give, instead of something unexpected:
Print CDate("11/11/2022 13:00:00") -> 11.11.2022 13:00:00
Print CDate("08/11/2022 13:00:00") -> 08.11.2022 13:00:00
But I think it would need its own class or set of methods to maintain the
old way people are using.
Jussi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221113/4d31670d/attachment.htm>
More information about the User
mailing list