[Bug libstdc++/114260] std::formatter> formats as the previous day

2024-03-07 Thread howard.hinnant at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114260 --- Comment #2 from Howard Hinnant --- This: 2024-03-05 00:00:00 2024-03-04 23:59:33 looks like correct output to me. sys_time and utc_time map to the same civil calendar date/time (except during a leap second). That is 2024-03-05 00:00:00

[Bug libstdc++/114244] Need to use round when parsing fractional seconds

2024-03-06 Thread howard.hinnant at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114244 --- Comment #4 from Howard Hinnant --- Not positive (because I don't know your code that well), but I think: __s = round<_Duration>(__fs); will do it.

[Bug libstdc++/114244] New: Need to use round when parsing fractional seconds

2024-03-05 Thread howard.hinnant at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114244 Bug ID: 114244 Summary: Need to use round when parsing fractional seconds Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug libstdc++/114240] sys_days not being parsed with only a date in the stream

2024-03-05 Thread howard.hinnant at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114240 --- Comment #2 from Howard Hinnant --- In my date lib I just presumed 00:00:00 time of day when parsing time_points, unless the parse produced another time of day. Though I must admit that this didn't come through in the spec. So there is a

[Bug libstdc++/114240] New: sys_days not being parsed with only a date in the stream

2024-03-05 Thread howard.hinnant at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114240 Bug ID: 114240 Summary: sys_days not being parsed with only a date in the stream Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal