This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of New status.
Section: 30.13 [time.parse] Status: New Submitter: Jonathan Wakely Opened: 2023-07-28 Last modified: 2024-01-29
Priority: 3
View other active issues in [time.parse].
View all other issues in [time.parse].
View all issues with New status.
Discussion:
The %j flag talks about "the type being parsed" and %S talks about
"the input time" and "the input", but doesn't really define which types
those are.
[2023-11-02; Reflector poll]
Set priority to 3 after reflector poll.
Proposed resolution:
This wording is relative to N4950.
Modify 30.13 [time.parse] as indicated:
-?- In Table 102 the type
Parsabledenotes the type of the second argument tofrom_stream.
%jIf the type being parsedParsableis a specialization ofduration, a decimal number of days.%SThe seconds as a decimal number. The modified command %NSspecifies the maximum number of characters to read. IfNis not specified, the default is 2 ifParsableis a calendrical type (30.8 [time.cal])if the input time has a precision convertible to seconds. Otherwise the default width is determined by the decimal precision ofthe inputParsable, determined in the same manner ashh_mm_ss::fractional_width(30.9 [time.hms]). If the number of fractional decimal digits for the type is zero, then the default forNis 2. Otherwise, it is 3 + W, where W is the number of fractional decimal digits. IfNis less than 3, the field is interpreted as a decimal integer, otherwiseandthe field is interpreted as along doublein a fixed format. If encountered, the locale determines the decimal point character. Leading zeroes are permitted but not required. The modified command%OSinterprets the locale's alternative representation.