diff --git a/d0355r6.html b/d0355r6.html index 4db0f41..8718fce 100644 --- a/d0355r6.html +++ b/d0355r6.html @@ -1556,8 +1556,8 @@ width and alignment properties of the stream. — end note]

get_units<charT, traits>(typename Period::type{}) is an -exposition-only function which returns a null-terminated string of -charT which depends on Period::type as follows +exposition-only function which returns a NTCTS +which depends on Period::type as follows (let period be the type Period::type):

@@ -1614,7 +1614,7 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt,

Effects: Streams d into os using the format specified by -the null-terminated string fmt. fmt encoding follows the rules +the NTCTS fmt. fmt encoding follows the rules specified by [time.format].

@@ -1634,7 +1634,7 @@ from_stream(basic_istream<charT, traits>& is, const charT* fmt,

Effects: Attempts to parse the input stream is into the duration -d using the format flags as specified in [time.parse]. +d using the format flags given in the NTCTS fmt as specified in [time.parse].

If the parse parses everything specified by the parsing format flags without error, and @@ -1844,6 +1844,7 @@ os << year_month_day{dp} << ' ' << time_of_day{tp-dp};

 cout << sys_seconds{0s} << '\n';             // 1970-01-01 00:00:00
 cout << sys_seconds{946'684'800s} << '\n';   // 2000-01-01 00:00:00
+cout << sys_seconds{946'688'523s} << '\n';   // 2000-01-01 01:02:03
 

end example] @@ -1875,9 +1876,9 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const sy

Effects: Streams tp into os using the format specified by -the null-terminated string fmt. fmt encoding follows the rules +the NTCTS fmt. fmt encoding follows the rules specified by [time.format]. If %Z is used, it will be replaced with -"UTC". If %z is used (or a modified variant of %z), +"UTC" widened to charT. If %z is used (or a modified variant of %z), an offset of 0min will be formatted.

@@ -1896,7 +1897,7 @@ from_stream(basic_istream<charT, traits>& is, const charT* fmt,

Effects: Attempts to parse the input stream is into the sys_time -tp using the format flags as specified in [time.parse]. +tp using the format flags given in the NTCTS fmt as specified in [time.parse].

If the parse fails to decode a valid date, is.setstate(ios_base::failbit) @@ -2067,12 +2068,12 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const ut

Effects: Streams tp into os using the format specified by -the null-terminated string fmt. fmt encoding follows the rules +the NTCTS fmt. fmt encoding follows the rules specified by [time.format]. If %Z is used, it will be replaced with -"UTC". If %z is used (or a modified variant of %z), +"UTC" widened to charT. If %z is used (or a modified variant of %z), an offset of 0min will be formatted. If tp represents a time during a leap second insertion, and if a seconds field is formatted, the integral portion -of that format shall be "60". +of that format shall be "60" widened to charT.

Returns: os. @@ -2115,7 +2116,7 @@ from_stream(basic_istream<charT, traits>& is, const charT* fmt,

Effects: Attempts to parse the input stream is into the utc_time -tp using the format flags as specified in [time.parse]. +tp using the format flags given in the NTCTS fmt as specified in [time.parse].

If the parse fails to decode a valid date, is.setstate(ios_base::failbit) @@ -2255,7 +2256,7 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const ta

Effects: Streams tp into os using the format specified by -the null-terminated string fmt. fmt encoding follows the rules +the NTCTS fmt. fmt encoding follows the rules specified by [time.format]. If %Z is used, it will be replaced with "TAI". If %z is used (or a modified variant of %z), an offset of 0min will be formatted. The date and time formatted shall be @@ -2297,7 +2298,7 @@ from_stream(basic_istream<charT, traits>& is, const charT* fmt,

Effects: Attempts to parse the input stream is into the tai_time -tp using the format flags as specified in [time.parse]. +tp using the format flags given in the NTCTS fmt as specified in [time.parse].

If the parse fails to decode a valid date, is.setstate(ios_base::failbit) @@ -2438,7 +2439,7 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const gp

Effects: Streams tp into os using the format specified by -the null-terminated string fmt. fmt encoding follows the rules +the NTCTS fmt. fmt encoding follows the rules specified by [time.format]. If %Z is used, it will be replaced with "GPS". If %z is used (or a modified variant of %z), an offset of 0min will be formatted. The date and time formatted shall be @@ -2480,7 +2481,7 @@ from_stream(basic_istream<charT, traits>& is, const charT* fmt,

Effects: Attempts to parse the input stream is into the gps_time -tp using the format flags as specified in [time.parse]. +tp using the format flags given in the NTCTS fmt as specified in [time.parse].

If the parse fails to decode a valid date, is.setstate(ios_base::failbit) @@ -2611,9 +2612,9 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const fi

Effects: Streams tp into os using the format specified by -the null-terminated string fmt. fmt encoding follows the rules +the NTCTS fmt. fmt encoding follows the rules specified by [time.format]. If %Z is used, it will be replaced with -"UTC". If %z is used (or a modified variant of %z), +"UTC" widened to charT. If %z is used (or a modified variant of %z), an offset of 0min will be formatted. The date and time formatted shall be equivalent to that formatted by a sys_time initialized with clock_cast<system_clock>(tp), or by a utc_time initialized with clock_cast<utc_clock>(tp). @@ -2634,7 +2635,7 @@ from_stream(basic_istream<charT, traits>& is, const charT* fmt,

Effects: Attempts to parse the input stream is into the file_time -tp using the format flags as specified in [time.parse]. +tp using the format flags given in the NTCTS fmt as specified in [time.parse].

If the parse fails to decode a valid date, is.setstate(ios_base::failbit) @@ -2708,7 +2709,7 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const lo

Effects: Streams tp into os using the format specified by -the null-terminated string fmt. fmt encoding follows the rules +the NTCTS fmt. fmt encoding follows the rules specified by [time.format]. If %Z is used, it will be replaced with *abbrev if abbrev is not equal to nullptr. If abbrev is equal to nullptr (and %Z is used), @@ -2734,7 +2735,7 @@ from_stream(basic_istream<charT, traits>& is, const charT* fmt,

Effects: Attempts to parse the input stream is into the local_time -tp using the format flags as specified in [time.parse]. +tp using the format flags given in the NTCTS fmt as specified in [time.parse].

If the parse fails to decode a valid date, is.setstate(ios_base::failbit) @@ -4207,7 +4208,7 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const da

Effects: Streams d into os using the format specified by -the null-terminated string fmt. fmt encoding follows the rules +the NTCTS fmt. fmt encoding follows the rules specified by [time.format].

@@ -4226,7 +4227,7 @@ from_stream(basic_istream<charT, traits>& is, const charT* fmt,

Effects: Attempts to parse the input stream is into the -day d using the format flags as specified in [time.parse]. +day d using the format flags given in the NTCTS fmt as specified in [time.parse].

If the parse fails to decode a valid day, is.setstate(ios_base::failbit) @@ -4579,7 +4580,7 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const mo

Effects: Streams m into os using the format specified by -the null-terminated string fmt. fmt encoding follows the rules +the NTCTS fmt. fmt encoding follows the rules specified by [time.format].

@@ -4598,7 +4599,7 @@ from_stream(basic_istream<charT, traits>& is, const charT* fmt,

Effects: Attempts to parse the input stream is into the -month m using the format flags as specified in [time.parse]. +month m using the format flags given in the NTCTS fmt as specified in [time.parse].

If the parse fails to decode a valid month, is.setstate(ios_base::failbit) @@ -4978,7 +4979,7 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const ye

Effects: Streams y into os using the format specified by -the null-terminated string fmt. fmt encoding follows the rules +the NTCTS fmt. fmt encoding follows the rules specified by [time.format].

@@ -4997,7 +4998,7 @@ from_stream(basic_istream<charT, traits>& is, const charT* fmt,

Effects: Attempts to parse the input stream is into the -year y using the format flags as specified in [time.parse]. +year y using the format flags given in the NTCTS fmt as specified in [time.parse].

If the parse fails to decode a valid year, is.setstate(ios_base::failbit) @@ -5379,7 +5380,7 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const we

Effects: Streams wd into os using the format specified by -the null-terminated string fmt. fmt encoding follows the rules +the NTCTS fmt. fmt encoding follows the rules specified by [time.format].

@@ -5398,7 +5399,7 @@ from_stream(basic_istream<charT, traits>& is, const charT* fmt,

Effects: Attempts to parse the input stream is into the -weekday wd using the format flags as specified in [time.parse]. +weekday wd using the format flags given in the NTCTS fmt as specified in [time.parse].

If the parse fails to decode a valid weekday, is.setstate(ios_base::failbit) @@ -5833,7 +5834,7 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const mo

Effects: Streams md into os using the format specified by -the null-terminated string fmt. fmt encoding follows the rules +the NTCTS fmt. fmt encoding follows the rules specified by [time.format].

@@ -5852,7 +5853,7 @@ from_stream(basic_istream<charT, traits>& is, const charT* fmt,

Effects: Attempts to parse the input stream is into the -month_day md using the format flags as specified in [time.parse]. +month_day md using the format flags given in the NTCTS fmt as specified in [time.parse].

If the parse fails to decode a valid month_day, @@ -6586,7 +6587,7 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const ye

Effects: Streams ym into os using the format specified by -the null-terminated string fmt. fmt encoding follows the rules +the NTCTS fmt. fmt encoding follows the rules specified by [time.format].

@@ -6605,7 +6606,7 @@ from_stream(basic_istream<charT, traits>& is, const charT* fmt,

Effects: Attempts to parse the input stream is into the -year_month ym using the format flags as specified in [time.parse]. +year_month ym using the format flags given in the NTCTS fmt as specified in [time.parse].

If the parse fails to decode a valid year_month, @@ -7058,7 +7059,7 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const ye

Effects: Streams ymd into os using the format specified by -the null-terminated string fmt. fmt encoding follows the rules +the NTCTS fmt. fmt encoding follows the rules specified by [time.format].

@@ -7077,7 +7078,7 @@ from_stream(basic_istream<charT, traits>& is, const charT* fmt,

Effects: Attempts to parse the input stream is into the -year_month_day ymd using the format flags as specified in [time.parse]. +year_month_day ymd using the format flags given in the NTCTS fmt as specified in [time.parse].

If the parse fails to decode a valid year_month_day,