[Gambas-user] Date(Now) with time component under Ubuntu?
Rolf-Werner Eilert
rwe-sse at osnanet.de
Thu Dec 6 18:19:36 CET 2018
Am 06.12.18 um 14:22 schrieb Benoît Minisini:
> Le 06/12/2018 à 13:03, Rolf-Werner Eilert a écrit :
>> Yes Bruce,
>>
>> I didn't realize before I ran into this, but as far as I understand now
>>
>> CStr(Now) should be local date + time
>> Str(Now) should be UTC
>>
>
> No, it's the contrary!
>
Ah yes, sorry, I see... :)
In both cases you get today's date (now 6th December), but if you
convert Date(Now) to a string, this is what you get:
CStr(Date(Now)) becomes yesterday's date + zero time -1 hour "12/05/2018
23:00:00"
Str(Date(Now)) becomes today's date + zero time "06.12.2018 00:00:00"
Strange, isn't it?
Regards
Rolf
More information about the User
mailing list