Not a developer but this an element of the answer.
In Calc, date are encoded in a floating point number starting from an origin called **epoch"", seemingly 1899-12-30 00:00:00.
This number can be signed: positive for dates after the epoch, negative before the epoch. It represents the number of days since the epoch.
Floating-point numbers are IEEE-754 doubles providing a 53-bit mantissa. This allows to store integers up to roughly 10^17, i.e. the date part of the number can be accurate up to this number of days. The fractional part of the number is the fraction of the day which is then converted in HH:MM:SS. However, the larger the number of days, the fewer bits allotted to the time part, meaning when the further away you are from the epoch, the less accurate the time. But you need to be really far fro the epoch to notice a macroscopic effect. Anyway, don’t rely on milliseconds.
To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!
In case you need clarification, edit your question (not an answer which is reserved for solutions) or comment the relevant answer.