From 87620f4d1f1e058dde114f93e3dbb80cba94b31a Mon Sep 17 00:00:00 2001
From: Howard Hinnant
template <class charT, class traits, class Rep, class Period>
-void
+basic_ostream<charT, traits>&
to_stream(basic_ostream<charT, traits>& os, const charT* fmt,
const duration<Rep, Period>& d);
@@ -1684,11 +1684,14 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt,
the null-terminated array fmt
. fmt
encoding follows the rules
specified by [time.format].
+Returns: os
.
+
template <class Rep, class Period, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, duration<Rep, Period>& d, basic_string<charT, traits, Alloc>* abbrev = nullptr, @@ -1712,6 +1715,9 @@ If%Z
is used and successfully parsed, that value will be assigned If%z
(or a modified variant) is used and successfully parsed, that value will be assigned to*offset
ifoffset
is non-null. ++Returns:
@@ -2033,7 +2039,7 @@ os << year_month_day{dp};is
. +template <class charT, class traits, class Duration> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const sys_time<Duration>& tp);@@ -2045,11 +2051,14 @@ specified by [time.format]. If%Z
is used, it will be replaced wit"UTC"
. If%z
is used (or a modified form of%z
), an offset of0min
will be formatted. ++Returns:
os
. +template <class Duration, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, sys_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -2073,6 +2082,9 @@ will be assigned to*offset
ifoffset
is non-null. Additionally, the parsed offset will be subtracted from the successfully parsed time stamp prior to assigning that difference totp
. ++Returns:
@@ -2228,7 +2240,7 @@ operator<<(basic_ostream<charT, traits>& os, const utc_time<Dis
. +template <class charT, class traits, class Duration> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const utc_time<Duration>& tp);@@ -2274,7 +2286,7 @@ Output:template <class Duration, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, utc_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -2298,6 +2310,9 @@ will be assigned to*offset
ifoffset
is non-null. Additionally, the parsed offset will be subtracted from the successfully parsed time stamp prior to assigning that difference totp
. ++Returns:
@@ -2418,7 +2433,7 @@ operator<<(basic_ostream<charT, traits>& os, const tai_time<Dis
. +template <class charT, class traits, class Duration> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const tai_time<Duration>& tp);@@ -2458,7 +2473,7 @@ Output:template <class Duration, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, tai_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -2482,6 +2497,9 @@ will be assigned to*offset
ifoffset
is non-null. Additionally, the parsed offset will be subtracted from the successfully parsed time stamp prior to assigning that difference totp
. ++Returns:
@@ -2603,7 +2621,7 @@ operator<<(basic_ostream<charT, traits>& os, const gps_time<Dis
. +template <class charT, class traits, class Duration> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const gps_time<Duration>& tp);@@ -2643,7 +2661,7 @@ Output:template <class Duration, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, gps_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -2667,6 +2685,9 @@ will be assigned to*offset
ifoffset
is non-null. Additionally, the parsed offset will be subtracted from the successfully parsed time stamp prior to assigning that difference totp
. ++Returns:
@@ -2766,7 +2787,7 @@ operator<<(basic_ostream<charT, traits>& os, const file_time<is
. +template <class charT, class traits, class Duration> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const file_time<Duration>& tp);@@ -2786,7 +2807,7 @@ equivalent to that formatted by asys_time
initialized witht
is in the formatting string andtemplate <class Duration, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, file_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -2810,6 +2831,9 @@ will be assigned to*offset
ifoffset
is non-null. Additionally, the parsed offset will be subtracted from the successfully parsed time stamp prior to assigning that difference totp
. ++Returns:
@@ -2854,7 +2878,7 @@ os << sys_time<Duration>{lt.time_since_epoch()};is
. +template <class charT, class traits, class Duration> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const local_time<Duration>& tp, const string* abbrev = nullptr, const seconds* offset_sec = nullptr);@@ -2872,11 +2896,14 @@ specified by [time.format]. If%Z
is used, it will be replaced wit (or a modified form of%z
) is used, andoffset_sec
is equal tonullptr
, thenfailbit
is set. ++Returns:
os
. +template <class Duration, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, local_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -2898,6 +2925,9 @@ If%Z
is used and successfully parsed, that value will be assigned If%z
(or a modified variant) is used and successfully parsed, that value will be assigned to*offset
ifoffset
is non-null. ++Returns:
@@ -3743,11 +3773,11 @@ basic_ostream<charT, traits>& operator<<(basic_ostream<charT, traits>& os, const day& d); template <class charT, class traits, class Duration> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const day& d); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, day& d, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -3987,7 +4017,7 @@ operator<<(basic_ostream<charT, traits>& os, const day& d);is
. +template <class charT, class traits, class Duration> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const day& d);@@ -3997,11 +4027,14 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const da the null-terminated arrayfmt
.fmt
encoding follows the rules specified by [time.format]. ++Returns:
os
. +template <class Duration, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, day& d, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -4023,6 +4056,9 @@ If%Z
is used and successfully parsed, that value will be assigned If%z
(or a modified variant) is used and successfully parsed, that value will be assigned to*offset
ifoffset
is non-null. ++Returns:
is
. +@@ -4087,11 +4123,11 @@ template <class charT, class traits> operator<<(basic_ostream<charT, traits>& os, const month& m); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const month& m); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, month& m, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -4358,7 +4394,7 @@ output for the month field byasctime
. Otherwise outputstemplate <class charT, class traits, class Duration> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const month& m);@@ -4368,11 +4404,14 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const mo the null-terminated arrayfmt
.fmt
encoding follows the rules specified by [time.format]. ++Returns:
os
. +template <class Duration, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, month& m, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -4394,6 +4433,9 @@ If%Z
is used and successfully parsed, that value will be assigned If%z
(or a modified variant) is used and successfully parsed, that value will be assigned to*offset
ifoffset
is non-null. ++Returns:
is
. +23.17.10.4 Class
@@ -4454,11 +4496,11 @@ template <class charT, class traits> operator<<(basic_ostream<charT, traits>& os, const year& y); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const year& y); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, year& y, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -4750,7 +4792,7 @@ intoyear
[time.calendar.year]os
. If the year is in the range [-999, 999], prefixes the yeartemplate <class charT, class traits, class Duration> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const year& y);@@ -4760,11 +4802,14 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const ye the null-terminated arrayfmt
.fmt
encoding follows the rules specified by [time.format]. ++Returns:
os
. +template <class Duration, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, year& y, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -4786,6 +4831,9 @@ If%Z
is used and successfully parsed, that value will be assigned If%z
(or a modified variant) is used and successfully parsed, that value will be assigned to*offset
ifoffset
is non-null. ++Returns:
is
. +@@ -4867,11 +4915,11 @@ template <class charT, class traits> operator<<(basic_ostream<charT, traits>& os, const weekday& wd); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const weekday& wd); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, weekday& wd, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -5150,7 +5198,7 @@ output for the weekday field byasctime
. Otherwise outputstemplate <class charT, class traits, class Duration> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const weekday& wd);@@ -5160,11 +5208,14 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const we the null-terminated arrayfmt
.fmt
encoding follows the rules specified by [time.format]. ++Returns:
os
. +template <class Duration, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, weekday& wd, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -5186,6 +5237,9 @@ If%Z
is used and successfully parsed, that value will be assigned If%z
(or a modified variant) is used and successfully parsed, that value will be assigned to*offset
ifoffset
is non-null. ++Returns:
is
. +23.17.10.6 Class
@@ -5460,11 +5514,11 @@ template <class charT, class traits> operator<<(basic_ostream<charT, traits>& os, const month_day& md); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const month_day& md); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, month_day& md, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -5598,7 +5652,7 @@ return os << md.month() << '/' << md.day();weekday_indexed
[time.calendar.weekday_indexed]template <class charT, class traits, class Duration> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const month_day& md);@@ -5608,11 +5662,14 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const mo the null-terminated arrayfmt
.fmt
encoding follows the rules specified by [time.format]. ++Returns:
os
. +template <class Duration, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, month_day& md, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -5634,6 +5691,9 @@ If%Z
is used and successfully parsed, that value will be assigned If%z
(or a modified variant) is used and successfully parsed, that value will be assigned to*offset
ifoffset
is non-null. ++Returns:
is
. +23.17.10.9 Class
@@ -6066,11 +6126,11 @@ template <class charT, class traits> operator<<(basic_ostream<charT, traits>& os, const year_month& ym); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const year_month& ym); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, year_month& ym, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -6328,7 +6388,7 @@ return os << ym.year() << '/' << ym.month();month_day_last
[time.calendar.month_day_last]template <class charT, class traits, class Duration> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const year_month& ym);@@ -6338,11 +6398,14 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const ye the null-terminated arrayfmt
.fmt
encoding follows the rules specified by [time.format]. ++Returns:
os
. +template <class Duration, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, year_month& ym, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -6364,6 +6427,9 @@ If%Z
is used and successfully parsed, that value will be assigned If%z
(or a modified variant) is used and successfully parsed, that value will be assigned to*offset
ifoffset
is non-null. ++Returns:
is
. +23.17.10.13 Class
@@ -6426,11 +6492,11 @@ template <class charT, class traits> operator<<(basic_ostream<charT, traits>& os, const year_month_day& ymd); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const year_month_day& ymd); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, year_month_day& ymd, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -6786,7 +6852,7 @@ are prefixed withyear_month_day
[time.calendar.year_month_day]'0'
if necessary.template <class charT, class traits, class Duration> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const year_month_day& ymd);@@ -6796,11 +6862,14 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const ye the null-terminated arrayfmt
.fmt
encoding follows the rules specified by [time.format]. ++Returns:
os
. +template <class Duration, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, year_month_day& ymd, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -6822,6 +6891,9 @@ If@@ -9860,7 +9932,7 @@ and the value returned from%Z
is used and successfully parsed, that value will be assigned If%z
(or a modified variant) is used and successfully parsed, that value will be assigned to*offset
ifoffset
is non-null. ++Returns:
is
. +23.17.10.14 Class
@@ -9537,7 +9609,7 @@ template <class Duration> operator<<(basic_ostream<class charT, class traits>& os, const zoned_time<Duration>& t); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const zoned_time<Duration>& tp);year_month_day_last
[time.calendar.year_month_day_last]t.get_local_time()
.template <class charT, class traits, class Duration> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const zoned_time<Duration>& tp);@@ -9870,6 +9942,9 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const zo which for exposition purposes will be referred to asinfo
. Then callsto_stream(os, fmt, tp.get_local_time(), &info.abbrev, &info.offset)
. ++Returns:
diff --git a/date.html b/date.html index db6c664..b246235 100644 --- a/date.html +++ b/date.html @@ -1679,7 +1679,7 @@ using months = std::chrono::durationos
. +template <class CharT, class Traits, class Rep, class Period> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt, const std::chrono::duration<Rep, Period>& d);@@ -1695,11 +1695,14 @@ is undefined except for the following flags (or modified versions of these flags%R
,%S
,%T
,%X
,%n
,%t
or%%
. ++Returns:
os
. +template <class Rep, class Period, class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, std::chrono::duration<Rep, Period>& d, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, @@ -1720,6 +1723,9 @@ flags):%H
,%I
,%M
,%p
,offset
is not equal tonullptr
, the information parsed by%z
(if present) will be placed in*offset
. ++Returns:
is
. +@@ -1835,7 +1841,7 @@ using sys_seconds = sys_time<std::chrono::seconds>;template <class CharT, class Traits, class Duration> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt, const sys_time<Duration>& tp);@@ -1849,11 +1855,14 @@ stringfmt
as specified by the%Z
is in the formatting string"UTC"
will be used. If%z
is in the formatting string"+0000"
will be used. ++Returns:
os
. +template <class Duration, class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, sys_time<Duration>& tp, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -1872,6 +1881,9 @@ Ifabbrev
is not equal tonullptr
, the information par is parsed, or a time of day which is outside of the conventional bounds,failbit
will be set andtp
will not be altered. ++Returns:
is
. +@@ -1930,7 +1942,7 @@ using local_seconds = local_time<std::chrono::seconds>;
local_time
template <class CharT, class Traits, class Duration> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt, const local_time<Duration>& tp, const std::string* abbrev = nullptr, const std::chrono::seconds* offset_sec = nullptr); @@ -1951,11 +1963,15 @@ If%Z
is in the formatting string andabbrev == nullptr
%zoffset_sec == nullptr
,failbit
will be set foros
. + ++Returns:
os
. +template <class Duration, class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, local_time<Duration>& tp, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -1973,6 +1989,9 @@ Ifabbrev
is not equal tonullptr
, the information par is parsed, or a time of day which is outside of the conventional bounds,failbit
will be set andtp
will not be altered. ++Returns:
is
. +@@ -2038,12 +2057,12 @@ std::basic_ostream<class CharT, class Traits>& operator<<(std::basic_ostream<class CharT, class Traits>& os, const day& d); template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const day& d); template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, day& d, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -2313,7 +2332,7 @@ operator<<(std::basic_ostream<class CharT, class Traits>& os, co
last_spec
template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const day& d);@@ -2327,11 +2346,14 @@ is undefined except for the following flags (or modified versions of these flags%d
,%e
,%n
,%t
or%%
. ++Returns:
os
. +template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, day& d, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -2350,6 +2372,9 @@ flags):%e
,%e
,%n
,offset
is not equal tonullptr
, the information parsed by%z
(if present) will be placed in*offset
. ++Returns:
@@ -2396,12 +2421,12 @@ std::basic_ostream<class CharT, class Traits>& operator<<(std::basic_ostream<class CharT, class Traits>& os, const month& m); template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const month& m); template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, month& m, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -2699,7 +2724,7 @@ output for the month field byis
. +asctime
. Otherwise outputstemplate<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const month& m);@@ -2713,11 +2738,14 @@ is undefined except for the following flags (or modified versions of these flags%b
,%B
,%h
,%m
,%n
,%t
or%%
. ++Returns:
os
. +template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, month& m, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -2736,6 +2764,9 @@ flags):%b
,%B
,%h
,%m
,offset
is not equal tonullptr
, the information parsed by%z
(if present) will be placed in*offset
. ++Returns:
@@ -2790,12 +2821,12 @@ std::basic_ostream<class CharT, class Traits>& operator<<(std::basic_ostream<class CharT, class Traits>& os, const year& y); template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const year& y); template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, year& y, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -3117,7 +3148,7 @@ intois
. +os
. If the year is less than four decimal digits, pads the yeatemplate<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const year& y);@@ -3131,11 +3162,14 @@ is undefined except for the following flags (or modified versions of these flags%C
,%y
,%Y
,%n
,%t
or%%
. ++Returns:
os
. +template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, year& y, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -3154,6 +3188,9 @@ flags):%C
,%y
,%Y
,%n
,offset
is not equal tonullptr
, the information parsed by%z
(if present) will be placed in*offset
. ++Returns:
@@ -3200,12 +3237,12 @@ std::basic_ostream<class CharT, class Traits>& operator<<(std::basic_ostream<class CharT, class Traits>& os, const weekday& wd); template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const weekday& wd); template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, weekday& wd, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -3525,7 +3562,7 @@ output for the weekday field byis
. +asctime
. Otherwise outputstemplate<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const weekday& wd);@@ -3539,11 +3576,14 @@ is undefined except for the following flags (or modified versions of these flags%a
,%A
,%u
,%w
,%n
,%t
or%%
. ++Returns:
os
. +template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, weekday& wd, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -3562,6 +3602,9 @@ flags):%a
,%A
,%u
,%w
,offset is not equal to nullptr
, the information parsed by%z
(if present) will be placed in*offset
. ++Returns:
@@ -3856,12 +3899,12 @@ std::basic_ostream<class CharT, class Traits>& operator<<(std::basic_ostream<class CharT, class Traits>& os, const month_day& md); template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const month_day& md); template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, month_day& md, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -4009,7 +4052,7 @@ operator<<(std::basic_ostream<class CharT, class Traits>& os, cois
. +template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const month_day& md);@@ -4023,11 +4066,14 @@ is undefined except for the following flags (or modified versions of these flags%b
,%B
,%d
,%e
,%h
,%m
,%n
,%t
or%%
. ++Returns:
os
. +template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, month_day& md, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -4047,6 +4093,9 @@ placed in*abbrev
. Ifoffset
is not equal tonullptr
, the information parsed by%z
(if present) will be placed in*offset
. ++Returns:
@@ -4509,12 +4558,12 @@ std::basic_ostream<class CharT, class Traits>& operator<<(std::basic_ostream<class CharT, class Traits>& os, const year_month& ym); template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const year_month& ym); template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, year_month& ym, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -4787,7 +4836,7 @@ operator<<(std::basic_ostream<class CharT, class Traits>& os, cois
. +template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const year_month& ym);@@ -4801,11 +4850,14 @@ is undefined except for the following flags (or modified versions of these flags%b
,%B
,%C
,%h
,%m
,%y
,%Y
,%n
,%t
or%%
. ++Returns:
os
. +template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, year_month& ym, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -4825,6 +4877,9 @@ placed in*abbrev
. Ifoffset
is not equal tonullptr
, the information parsed by%z
(if present) will be placed in*offset
. ++Returns:
@@ -4881,12 +4936,12 @@ std::basic_ostream<class CharT, class Traits>& operator<<(std::basic_ostream<class CharT, class Traits>& os, const year_month_day& ymd); template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const year_month_day& ymd); template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, year_month_day& ymd, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -5260,7 +5315,7 @@ are prefixed withis
. +'0'
if necessary..template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const year_month_day& ymd);@@ -5275,11 +5330,14 @@ to_stream(std::basic_ostream<class CharT, class Traits>& os, const Cha If%z
or%Z
is used in thefmt
stringfailbit
will be set foros
. ++Returns:
os
. +template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, year_month_day& ymd, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -5295,6 +5353,9 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, y@@ -1935,7 +1935,7 @@ operator<<(std::basic_ostream<class CharT, class Traits>& os, cooffset
is not equal tonullptr
, the information parsed by%z
(if present) will be placed in*offset
. ++Returns:
diff --git a/tz.html b/tz.html index c362f4d..3a76718 100644 --- a/tz.html +++ b/tz.html @@ -1617,7 +1617,7 @@ std::basic_ostream<class CharT, class Traits>& operator<<(std::basic_ostream<class CharT, class Traits>& os, const zoned_time<Duration>& t) template <class CharT, class Traits, class Duration> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt, const zoned_time<Duration>& tp);is
. +template <class CharT, class Traits, class Duration> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt, const zoned_time<Duration>& tp);@@ -1946,6 +1946,9 @@ to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,tp.get_info()
(stored in a local namedinfo
for example). Then callsto_stream(os, fmt, tp.get_local_time(), &info.abbrev, &info.offset)
. ++Returns:
@@ -2205,7 +2208,7 @@ operator<<(std::basic_ostream<class CharT, class Traits>& os, coos
. +template <class CharT, class Traits, class Duration> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt, const utc_time<Duration>& tp);@@ -2220,11 +2223,14 @@ Time points representing leap second insertions which format seconds will show If%Z
is in the formatting string"UTC"
will be used. If%z
is in the formatting string"+0000"
will be used. ++Returns:
os
. +template <class Duration, class CharT, class Traits> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, utc_time<Duration>& tp, std::basic_string<CharT, Traits>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -2241,6 +2247,9 @@ Ifabbrev
is not equal tonullptr
, the information paroffset
is not equal tonullptr
, the information parsed by%z
(if present) will be placed in*offset
. ++Returns:
@@ -2355,7 +2364,7 @@ operator<<(std::basic_ostream<class CharT, class Traits>& os, cois
. +template <class CharT, class Traits, class Duration> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt, const tai_time<Duration>& tp);@@ -2368,11 +2377,14 @@ stringfmt
as specified by the If%Z
is in the formatting string"TAI"
will be used. If%z
is in the formatting string"+0000"
will be used. ++Returns:
os
. +template <class Duration, class CharT, class Traits> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, tai_time<Duration>& tp, std::basic_string<CharT, Traits>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -2389,6 +2401,9 @@ Ifabbrev
is not equal tonullptr
, the information paroffset
is not equal tonullptr
, the information parsed by%z
(if present) will be placed in*offset
. ++Returns:
@@ -2502,7 +2517,7 @@ operator<<(std::basic_ostream<class CharT, class Traits>& os, cois
. +template <class CharT, class Traits, class Duration> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt, const gps_time<Duration>& tp);@@ -2515,11 +2530,14 @@ stringfmt
as specified by the If%Z
is in the formatting string"GPS"
will be used. If%z
is in the formatting string"+0000"
will be used. ++Returns:
os
. +template <class Duration, class CharT, class Traits> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, gps_time<Duration>& tp, std::basic_string<CharT, Traits>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -2536,6 +2554,9 @@ Ifabbrev
is not equal tonullptr
, the information paroffset
is not equal tonullptr
, the information parsed by%z
(if present) will be placed in*offset
. ++Returns:
is
. +