[Gambas-user] CDate Documentation
Benoit Minisini
benoit.minisini at gambas-basic.org
Mon Nov 14 18:56:42 CET 2022
Le 14/11/2022 à 15:51, Claus Dietrich a écrit :
>> You don't understand:
>>
>> 1) That the Gambas 'Date' datatype is a timestamp, not a local
>> representation of a date.
>
> I didn't refer to Date as datatype. I clearly referred to the Date
> function and both functions
> - Date(y,m,d,h,m,s) and CDate(mm/dd/yyyy hh:mm:ss)-
> deliver the datatype Date but with different results.
>
>> 2) That a timestamp is the representation of a *absolute physical
>> instant*. It is not relative like a string representation of a date.
>
> Then standard ISO 8601 must be a misunderstanding.
ISO 8601 tries to represent timestamp with the usual human "date as a
string" representation - as soon as the timezone is specified of course.
It works only by using Gregorian calendar.
>
>> If you can't get with this logic, because you still mix relative
>> representation of time and absolute representation (as shown by your
>> point #5)
>
> I don't see reasons to have doubts about my logic and to get personal.
Sorry, I didn't want to be personal at all. I just try to untie the
problem where we both use the same words with different meanings, which
won't lead the discussion anywhere.
This is why I talked about point #5: it seems that you think Gambas
understands in some way the usual concept of date. But Gambas doesn't.
It does not store things like day, month, year... It only manipulates
timestamp, i.e. absolute time instants.
Maybe if "Date" datatype and "CDate" functions had been named
"Timestamp" and "CTimestamp", it would have been more clear?
Regards,
--
Benoît Minisini.
More information about the User
mailing list