2 ms·
The VARIANT date type uses a floating point number; the whole number portion is the day (days past 1900 January 1) and the fractional part is the time. Not sur
by adzm 3y ago
The VARIANT date type uses a floating point number; the whole number portion is the day (days past 1900 January 1) and the fractional part is the time.
Not sure about classic BASIC; I don't really recall there being a specific time type, though I know later things like Visual Basic and etc would just use the VARIANT date type above with a 0 day component.
I like Windows' FILETIME which stores time as 100-nanosecond intervals since the beginning of the year 1601. C#'s DateTime is similar but uses an epoch of 0001 January 1.
I know JavaScript and others simply use the usual unix Epoch but with milliseconds rather than seconds, so time() * 1000.