[Gambas-user] Where is the mistake?
g4mba5 at gmail.com
Mon Apr 15 02:29:11 CEST 2019
Le 08/04/2019 à 18:20, Tobias Boege a écrit :
> It seems that a time-only date (which is what you get from calling Frac()
> on a date) are *not* subject to timezone calculations. As soon as the Date
> has a date part (a positive integral part in the Float representation),
> the system timezone is taken into account. If you think about it, it makes
> sense (at least a little): if you have no date, how are you going to handle
> the timezone calculation causing your time to overflow and the change the
> (non-existent) date? [ Or it might be a bug... ]
It's intended exactly like you wrote: timezone is used only if there is
a date. If there is only a time (i.e. the data part is zero), then the
timezone is ignored when transforming it into a string.
More information about the User