-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
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
Address time library FIXMEs #2350
Comments
5de1ca9 addresses range checking. |
Visiting for triage; nothing to add |
The ISO 8601 standard does not mandate any specific precision for fractional seconds, so this accepts input of any length, ignoring the part after the nanoseconds place. It may be more correct to round with the tenths of nanoseconds digit, but then we'd have to deal with carrying the round through the entire Tm struct (e.g. for a time like Dec 31 11:59.999999999999). %f is the format specifier that Python's datetime library uses for 0-padded microseconds so it seemed appropriate here. cc rust-lang#2350
The ISO 8601 standard does not mandate any specific precision for fractional seconds, so this accepts input of any length, ignoring the part after the nanoseconds place. It may be more correct to round with the tenths of nanoseconds digit, but then we'd have to deal with carrying the round through the entire Tm struct (e.g. for a time like Dec 31 11:59.999999999999). %f is the format specifier that Python's datetime library uses for 0-padded microseconds so it seemed appropriate here. cc #2350
Just a bug, de-milestoning |
Going to spend tomorrow adding more types in do_strftime(). |
OK. Got it :) |
r? @catamorphism |
@luisbg where is the pull request? |
Changed the function name to days_in_year() as @kud1ing suggested, and fixed the errors. |
This was not intended to be closed by c463772. |
Sorry about that. |
Plus testing added for %X and %x which were supported but not tested. Working towards rust-lang#2350
Plus testing added for %X and %x which were supported but not tested. Working towards #2350
Working towards rust-lang#2350
Working towards rust-lang#2350
triage bump |
This crate is no longer a concern in-tree. |
remove deprecated options These have been deprecated a month ago and nobody said they need them. Is that enough time? We can also let this PR sit a little. Cc rust-lang/miri#2187 rust-lang/miri#2188 (keeping them open to track removing their supporting infrastructure in the core interpreter)
Just making one issue since there are many FIXMEs:
"range check" (appears several places)strftime
test_strptime
The text was updated successfully, but these errors were encountered: