forked from HowardHinnant/date
Enable parse and format for more types:
* year * month * day * weekday * year_month * month_day
This commit is contained in:
81
tz.html
81
tz.html
@@ -26,7 +26,7 @@
|
|||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<a href="mailto:howard.hinnant@gmail.com">Howard E. Hinnant</a><br/>
|
<a href="mailto:howard.hinnant@gmail.com">Howard E. Hinnant</a><br/>
|
||||||
2017-03-22<br/>
|
2017-03-25<br/>
|
||||||
</address>
|
</address>
|
||||||
<hr/>
|
<hr/>
|
||||||
<h1 align=center>Time Zone Database Parser</h1>
|
<h1 align=center>Time Zone Database Parser</h1>
|
||||||
@@ -2027,6 +2027,49 @@ make_zoned(const std::string& name, const sys_time<Duration>& st)
|
|||||||
<a name="to_stream"></a><h3><code>to_stream</code></h3>
|
<a name="to_stream"></a><h3><code>to_stream</code></h3>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
template <class CharT, class Traits>
|
||||||
|
void
|
||||||
|
to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
|
||||||
|
const year& y);
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
template <class CharT, class Traits>
|
||||||
|
void
|
||||||
|
to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
|
||||||
|
const month& m);
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
template <class CharT, class Traits>
|
||||||
|
void
|
||||||
|
to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
|
||||||
|
const day& d);
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
template <class CharT, class Traits>
|
||||||
|
void
|
||||||
|
to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
|
||||||
|
const weekday& wd);
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
template <class CharT, class Traits>
|
||||||
|
void
|
||||||
|
to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
|
||||||
|
const year_month& ym);
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
template <class CharT, class Traits>
|
||||||
|
void
|
||||||
|
to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
|
||||||
|
const month_day& md);
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
template <class CharT, class Traits, , class Rep, class Period>
|
template <class CharT, class Traits, , class Rep, class Period>
|
||||||
void
|
void
|
||||||
@@ -2208,6 +2251,42 @@ For the overloads taking a <code>zoned_time</code> it is the value returned by
|
|||||||
<blockquote>
|
<blockquote>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
template <class CharT, class Traits, class Alloc = std::allocator<CharT>>
|
||||||
|
void
|
||||||
|
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);
|
||||||
|
|
||||||
|
template <class CharT, class Traits, class Alloc = std::allocator<CharT>>
|
||||||
|
void
|
||||||
|
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);
|
||||||
|
|
||||||
|
template <class CharT, class Traits, class Alloc = std::allocator<CharT>>
|
||||||
|
void
|
||||||
|
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);
|
||||||
|
|
||||||
|
template <class CharT, class Traits, class Alloc = std::allocator<CharT>>
|
||||||
|
void
|
||||||
|
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);
|
||||||
|
|
||||||
|
template <class CharT, class Traits, class Alloc = std::allocator<CharT>>
|
||||||
|
void
|
||||||
|
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);
|
||||||
|
|
||||||
|
template <class CharT, class Traits, class Alloc = std::allocator<CharT>>
|
||||||
|
void
|
||||||
|
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);
|
||||||
|
|
||||||
template <class CharT, class Traits>
|
template <class CharT, class Traits>
|
||||||
void
|
void
|
||||||
from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
|
from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
|
||||||
|
Reference in New Issue
Block a user