Move formatting and parsing

Moved formatting and parsing of sys_time and local_time from tz.h to
date.h in order to make this functionality available to a wider
audience.  Existing code does not need to change.  But future code
can #include "date.h" instead of "tz.h" and need not compile tz.cpp nor
link to curl.

Formatting zoned_time remains in tz.h.
This commit is contained in:
Howard Hinnant
2016-08-24 20:33:50 -04:00
parent e641f69667
commit 47b51473c5
2 changed files with 6 additions and 2 deletions

View File

@@ -26,7 +26,7 @@
<br/>
<br/>
<a href="mailto:howard.hinnant@gmail.com">Howard E. Hinnant</a><br/>
2016-06-27<br/>
2016-08-24<br/>
</address>
<hr/>
<h1 align=center><code>date</code></h1>
@@ -1631,6 +1631,10 @@ std::basic_ostream&lt;CharT, Traits&gt;&amp;
operator&lt;&lt;(std::basic_ostream&lt;CharT, Traits&gt;&amp; os, const local_time&lt;Duration&gt;&amp; tp);
</pre></a></td></tr>
<tr><td>&nbsp;</td><td>&nbsp;</td></tr>
<tr><td><a href="tz.html#format">Formatting</a> and</td><td>&nbsp;</td></tr>
<tr><td><a href="tz.html#parse">Parsing</a></td><td>&nbsp;</td></tr>
</table>
<p>

View File

@@ -26,7 +26,7 @@
<br/>
<br/>
<a href="mailto:howard.hinnant@gmail.com">Howard E. Hinnant</a><br/>
2016-08-08<br/>
2016-08-24<br/>
</address>
<hr/>
<h1 align=center>Time Zone Database Parser</h1>