[Gambas-user] Date(Now) with time component under Ubuntu?

Rolf-Werner Eilert rwe-sse at osnanet.de
Mon Dec 10 11:35:26 CET 2018

Am 06.12.18 um 22:48 schrieb Benoît Minisini:
> Le 06/12/2018 à 18:59, Gianluigi a écrit :
>> You nust not have to mix the functions that locate (Date, Str, Val) 
>> with those that do not locate (CDate, CString).
>> "Date" takes away the time part.
> Or, if it's clearer for you Rolf, Date() moves the date to midnight in 
> your timezone.

Yes, that means the time part remains in the string and is not cut away 
- as the help text suggests and as it used to be before.

Though I would consider this to be logical:

Day(Now) =  only the calendar day (as integer)
Year(Now) = only the year (as integer)
Date(Now) = only the date part
Time(Now) = only the time part

But anyway, I've adapted my program to it, so there's no more problem 
right now. I'd only suggest someone adapts the help text to avoid confusion.


More information about the User mailing list