We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basis Date sais:
Offsets are taken modulo 24 hours. That is, we express t, in hours, as sgn(t)(24*d + r), where d and r are non-negative, d is integral, and r < 24.
r < 24 means that r is in hours. And by we express t, in hours, r should be integral.
r < 24
we express t, in hours
But in general, the Time.time for offset has a finer precision than seconds.
Time.time
offset
And SML/NJ 110.97 keep values finer that hour like below:
- Date.toString (Date.date { year=2000, day= 1, hour=0, minute=0, month=Date.Jan, offset=SOME (Time.fromSeconds (0)), second=0}); val it = "Sat Jan 01 00:00:00 2000" : string - Date.toString (Date.date { year=2000, day= 1, hour=0, minute=0, month=Date.Jan, offset=SOME (Time.fromSeconds (1)), second=0}); val it = "Sat Jan 01 00:00:01 2000" : string (* +1 sec *)
I think the specification should be modified to keep seconds.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Basis Date sais:
r < 24
means that r is in hours.And by
we express t, in hours
, r should be integral.But in general, the
Time.time
foroffset
has a finer precision than seconds.And SML/NJ 110.97 keep values finer that hour like below:
I think the specification should be modified to keep seconds.
The text was updated successfully, but these errors were encountered: