diff --git a/d0355r6.html b/d0355r6.html index b9245b7..4db0f41 100644 --- a/d0355r6.html +++ b/d0355r6.html @@ -38,7 +38,7 @@ Document number: D0355R6

Howard E. Hinnant
Tomasz Kamiński
-2018-03-14
+2018-03-15

Extending <chrono> to Calendars and Time Zones

@@ -2777,7 +2777,7 @@ convert time_point<SourceClock, Duration> to time_point<DestClock, Duration> via a specialization: clock_time_conversion<DestClock, SourceClock>. A specialization of clock_time_conversion<DestClock, SourceClock> shall provide a -const-qualified operator() that takes a parameter of type +const-qualified operator() that takes a parameter of type time_point<SourceClock, Duration> and returns a time_point<DestClock, OtherDuration> representing an equivalent point in time. OtherDuration is a chrono::duration whose @@ -3573,7 +3573,7 @@ overload takes a format string containing ordinary characters and flags which ha meaning. Each flag begins with a %. Some flags can be modified by E or O. During parsing each flag interprets characters as parts of date and time type according to the table below. Some flags can be modified by a width -parameter given as a positive decimal integer called out as N below which +parameter given as a positive decimal integer called out as N below which governs how many characters are parsed from the stream in interpreting the flag. All characters in the format string which are not represented in the table below, except for white space, are parsed unchanged from the stream. A white space character matches zero or @@ -3619,18 +3619,18 @@ interprets the locale's alternate date and time representation. %C -The century as a decimal number. The modified command %NC +The century as a decimal number. The modified command %NC specifies the maximum number of characters to -read. If N is not specified, the default is 2. Leading zeroes are permitted but not required. +read. If N is not specified, the default is 2. Leading zeroes are permitted but not required. The modified commands %EC and %OC interpret the locale's alternative representation of the century. %d -The day of the month as a decimal number. The modified command %Nd +The day of the month as a decimal number. The modified command %Nd specifies the maximum number of characters to -read. If N is not specified, the default is 2. Leading zeroes are permitted but not required. +read. If N is not specified, the default is 2. Leading zeroes are permitted but not required. The modified command %Ed interprets the locale's alternative representation of the day of the month. @@ -3648,23 +3648,23 @@ of the day of the month. %F Equivalent to %Y-%m-%d. If modified with a width -N, the width is applied +N, the width is applied to only %Y. %g The last two decimal digits of the ISO week-based year. The modified command -%Ng specifies the maximum -number of characters to read. If N is not specified, the default is 2. Leading zeroes are +%Ng specifies the maximum +number of characters to read. If N is not specified, the default is 2. Leading zeroes are permitted but not required. %G -The ISO week-based year as a decimal number. The modified command %NG +The ISO week-based year as a decimal number. The modified command %NG specifies the maximum number of -characters to read. If N is not specified, the default is 4. Leading zeroes are permitted +characters to read. If N is not specified, the default is 4. Leading zeroes are permitted but not required. @@ -3675,34 +3675,34 @@ but not required. %H -The hour (24-hour clock) as a decimal number. The modified command %NH +The hour (24-hour clock) as a decimal number. The modified command %NH specifies the maximum number of -characters to read. If N is not specified, the default is 2. Leading zeroes are permitted +characters to read. If N is not specified, the default is 2. Leading zeroes are permitted but not required. The modified command %OH interprets the locale's alternative representation. %I -The hour (12-hour clock) as a decimal number. The modified command %NI +The hour (12-hour clock) as a decimal number. The modified command %NI specifies the maximum number of -characters to read. If N is not specified, the default is 2. Leading zeroes are permitted +characters to read. If N is not specified, the default is 2. Leading zeroes are permitted but not required. %j The day of the year as a decimal number. Jan 1 is 1. The modified -command %Nj specifies the -maximum number of characters to read. If N is not specified, the default is 3. Leading zeroes +command %Nj specifies the +maximum number of characters to read. If N is not specified, the default is 3. Leading zeroes are permitted but not required. %m The month as a decimal number. Jan is 1. The modified command -%Nm specifies the maximum -number of characters to read. If N is not specified, the default is 2. Leading zeroes are +%Nm specifies the maximum +number of characters to read. If N is not specified, the default is 2. Leading zeroes are permitted but not required. The modified command %Om interprets the locale's alternative representation. @@ -3710,8 +3710,8 @@ alternative representation. %M The minutes as a decimal number. The modified command -%NM specifies the maximum -number of characters to read. If N is not specified, the default is 2. Leading zeroes are +%NM specifies the maximum +number of characters to read. If N is not specified, the default is 2. Leading zeroes are permitted but not required. The modified command %OM interprets the locale's alternative representation. @@ -3743,9 +3743,9 @@ The command %I must precede %p in the format string. %S -The seconds as a decimal number. The modified command %NS +The seconds as a decimal number. The modified command %NS specifies the maximum number of characters to -read. If N is not specified, the default is 2 if the input time has a precision convertible to +read. If N is not specified, the default is 2 if the input time has a precision convertible to seconds. Otherwise the default width is determined by the decimal precision of the input and the field is interpreted as a long double in a fixed format. If encountered, the locale determines the decimal point character. Leading zeroes are permitted but not @@ -3766,8 +3766,8 @@ representation. %u The ISO weekday as a decimal number (1-7), where Monday is 1. The modified command -%Nu specifies the maximum -number of characters to read. If N is not specified, the default is 1. Leading zeroes are +%Nu specifies the maximum +number of characters to read. If N is not specified, the default is 1. Leading zeroes are permitted but not required. The modified command %Ou interprets the locale's alternative representation. @@ -3776,24 +3776,24 @@ alternative representation. %U The week number of the year as a decimal number. The first Sunday of the year is the first day of week 01. Days of the same year prior to that are in week -00. The modified command %NU -specifies the maximum number of characters to read. If N is not +00. The modified command %NU +specifies the maximum number of characters to read. If N is not specified, the default is 2. Leading zeroes are permitted but not required. %V The ISO week-based week number as a decimal number. The modified command -%NV specifies the maximum -number of characters to read. If N is not specified, the default is 2. Leading zeroes are +%NV specifies the maximum +number of characters to read. If N is not specified, the default is 2. Leading zeroes are permitted but not required. %w The weekday as a decimal number (0-6), where Sunday is 0. The modified command -%Nw specifies the maximum -number of characters to read. If N is not specified, the default is 1. Leading zeroes are +%Nw specifies the maximum +number of characters to read. If N is not specified, the default is 1. Leading zeroes are permitted but not required. The modified command %Ow interprets the locale's alternative representation. @@ -3802,8 +3802,8 @@ alternative representation. %W The week number of the year as a decimal number. The first Monday of the year is the first day of week 01. Days of the same year prior to that are in week -00. The modified command %NW -specifies the maximum number of characters to read. If N is not specified, the +00. The modified command %NW +specifies the maximum number of characters to read. If N is not specified, the default is 2. Leading zeroes are permitted but not required. @@ -3825,17 +3825,17 @@ produces the locale's alternate time representation. If the century is not otherwise specified (e.g. with %C), values in the range [69 - 99] are presumed to refer to the years [1969 - 1999], and values in the range [00 - 68] are presumed to refer to the years [2000 - 2068]. The modified command -%Ny specifies the maximum -number of characters to read. If N is not specified, the default is 2. Leading zeroes are +%Ny specifies the maximum +number of characters to read. If N is not specified, the default is 2. Leading zeroes are permitted but not required. The modified commands %Ey and %Oy interpret the locale's alternative representation. %Y -The year as a decimal number. The modified command %NY +The year as a decimal number. The modified command %NY specifies the maximum number of characters to -read. If N is not specified, the default is 4. Leading zeroes are permitted but not required. +read. If N is not specified, the default is 4. Leading zeroes are permitted but not required. The modified command %EY interprets the locale's alternative representation. @@ -5756,7 +5756,7 @@ constexpr bool operator==(const month_day& x, const month_day& y) noexce

-Returns: x.month() == y.month() && x.day() == y.day() +Returns: x.month() == y.month() && x.day() == y.day().

@@ -5766,7 +5766,7 @@ constexpr bool operator!=(const month_day& x, const month_day& y) noexce

-Returns: !(x == y) +Returns: !(x == y).

@@ -5968,7 +5968,7 @@ constexpr bool operator!=(const month_day_last& x, const month_day_last&

-Returns: !(x == y) +Returns: !(x == y).

@@ -6434,7 +6434,7 @@ constexpr bool operator==(const year_month& x, const year_month& y) noex

-Returns: x.year() == y.year() && x.month() == y.month() +Returns: x.year() == y.year() && x.month() == y.month().

@@ -6444,7 +6444,7 @@ constexpr bool operator!=(const year_month& x, const year_month& y) noex

-Returns: !(x == y) +Returns: !(x == y).

@@ -9277,16 +9277,14 @@ tzdb::const_iterator tzdb::erase_after(const_iterator p); or end() if no such element exists.

-Remarks: No pointers, references or iterators are invalidated except those referring +Remarks: No pointers, references, or iterators are invalidated except those referring to the erased tzdb. +[Note: It is not possible to erase the tzdb referred to by +begin(). — end note]

Throws: Nothing.

-

-[Note: It is not possible to erase the tzdb referred to by -begin(). — end note] -

@@ -9347,7 +9345,7 @@ the tzdb_list accessed by get_tzdb_list().
 Returns: get_tzdb_list().front().
 

-Remarks: No pointers, references or iterators are invalidated. +Remarks: No pointers, references, or iterators are invalidated.

Remarks: This function is thread-safe with respect to