You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If casting a negative number of micros/millis to date, the cast method divides by the number of (micro/milli)seconds to get the number of days from the beginning of the epoch.
For a timestamp like 1969/12/31 23:59:59.995 (in millis) the number of millis from beginning of the epoch is -5. The division by the number of seconds in a day yields 0 which is off by one day since it should be -1.
If casting a negative number of micros/millis to date, the cast method divides by the number of (micro/milli)seconds to get the number of days from the beginning of the epoch.
For a timestamp like
1969/12/31 23:59:59.995
(in millis) the number of millis from beginning of the epoch is -5. The division by the number of seconds in a day yields0
which is off by one day since it should be-1
.To Reproduce
Expected behavior
The text was updated successfully, but these errors were encountered: