summaryrefslogtreecommitdiff
path: root/doc/html/time_facet.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/time_facet.html')
-rw-r--r--doc/html/time_facet.html146
1 files changed, 146 insertions, 0 deletions
diff --git a/doc/html/time_facet.html b/doc/html/time_facet.html
new file mode 100644
index 0000000000..7089e5765c
--- /dev/null
+++ b/doc/html/time_facet.html
@@ -0,0 +1,146 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Class template time_facet</title>
+<link rel="stylesheet" href="boostbook.css" type="text/css">
+<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
+<link rel="start" href="index.html" title="The Boost C++ Libraries">
+<link rel="up" href="date_time/doxy.html#id2417782" title="Header &lt;boost/date_time/time_facet.hpp&gt;">
+<link rel="prev" href="time_formats.html" title="Struct template time_formats">
+<link rel="next" href="time_input_facet.html" title="Class template time_input_facet">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table cellpadding="2" width="100%">
+<td valign="top"><img alt="boost.png (6897 bytes)" width="277" height="86" src="../../boost.png"></td>
+<td align="center"><a href="../../index.htm">Home</a></td>
+<td align="center"><a href="../../libs/libraries.htm">Libraries</a></td>
+<td align="center"><a href="../../people/people.htm">People</a></td>
+<td align="center"><a href="../../more/faq.htm">FAQ</a></td>
+<td align="center"><a href="../../more/index.htm">More</a></td>
+</table>
+<hr>
+<div class="spirit-nav">
+<a accesskey="p" href="time_formats.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2417782"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="time_input_facet.html"><img src="images/next.png" alt="Next"></a>
+</div>
+<div class="refentry" lang="en">
+<a name="time_facet"></a><div class="titlepage"></div>
+<div class="refnamediv">
+<h2><span class="refentrytitle">Class template time_facet</span></h2>
+<p>boost::date_time::time_facet &#8212; </p>
+</div>
+<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
+<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="bold"><strong>template</strong></span>&lt;<span class="bold"><strong>typename</strong></span> time_type, <span class="bold"><strong>typename</strong></span> CharT,
+         <span class="bold"><strong>typename</strong></span> OutItrT = std::ostreambuf_iterator&lt;CharT, std::char_traits&lt;CharT&gt; &gt; &gt;
+<span class="bold"><strong>class</strong></span> time_facet : <span class="bold"><strong>public</strong></span> boost::date_time::date_facet&lt; time_type::date_type, CharT, OutItrT &gt;
+{
+<span class="bold"><strong>public</strong></span>:
+  <span class="emphasis"><em>// types</em></span>
+  <span class="bold"><strong>typedef</strong></span> time_type::date_type                                                          date_type;                    
+  <span class="bold"><strong>typedef</strong></span> time_type::time_duration_type                                                 time_duration_type;           
+  <span class="bold"><strong>typedef</strong></span> <a href="period.html" title="Class template period">boost::date_time::period</a>&lt; time_type, time_duration_type &gt;                     period_type;                  
+  <span class="bold"><strong>typedef</strong></span> <a href="date_facet.html" title="Class template date_facet">boost::date_time::date_facet</a>&lt; <span class="bold"><strong>typename</strong></span> time_type::date_type, CharT, OutItrT &gt; base_type;                    
+  <span class="bold"><strong>typedef</strong></span> base_type::string_type                                                        string_type;                  
+  <span class="bold"><strong>typedef</strong></span> base_type::char_type                                                          char_type;                    
+  <span class="bold"><strong>typedef</strong></span> base_type::period_formatter_type                                              period_formatter_type;        
+  <span class="bold"><strong>typedef</strong></span> base_type::special_values_formatter_type                                      special_values_formatter_type;
+  <span class="bold"><strong>typedef</strong></span> base_type::date_gen_formatter_type                                            date_gen_formatter_type;      
+
+  <span class="emphasis"><em>// <a href="time_facet.html#time_facetconstruct-copy-destruct">construct/copy/destruct</a></em></span>
+  <a href="time_facet.html#id2451781-bb">time_facet</a>(::size_t = 0);
+  <a href="time_facet.html#id2451803-bb">time_facet</a>(<span class="bold"><strong>const</strong></span> char_type *,
+             period_formatter_type = period_formatter_type(),
+             <span class="bold"><strong>const</strong></span> special_values_formatter_type &amp; = special_values_formatter_type(),
+             date_gen_formatter_type = date_gen_formatter_type(),
+             ::size_t = 0);
+
+  <span class="emphasis"><em>// <a href="time_facet.html#id2442387-bb">public member functions</a></em></span>
+  <span class="type">std::locale::id &amp;</span> <a href="time_facet.html#id2442392-bb">__get_id</a>(<span class="bold"><strong>void</strong></span>) <span class="bold"><strong>const</strong></span>;
+  <span class="type"><span class="bold"><strong>void</strong></span></span> <a href="time_facet.html#id2442414-bb">time_duration_format</a>(<span class="bold"><strong>const</strong></span> char_type *<span class="bold"><strong>const</strong></span>) ;
+  <span class="type"><span class="bold"><strong>virtual</strong></span> <span class="bold"><strong>void</strong></span></span> <a href="time_facet.html#id2442440-bb">set_iso_format</a>() ;
+  <span class="type"><span class="bold"><strong>virtual</strong></span> <span class="bold"><strong>void</strong></span></span> <a href="time_facet.html#id2442452-bb">set_iso_extended_format</a>() ;
+  <span class="type">OutItrT</span> <a href="time_facet.html#id2442465-bb">put</a>(OutItrT, std::ios_base &amp;, char_type, <span class="bold"><strong>const</strong></span> time_type &amp;) <span class="bold"><strong>const</strong></span>;
+  <span class="type">OutItrT</span> <a href="time_facet.html#id2479271-bb">put</a>(OutItrT, std::ios_base &amp;, char_type, <span class="bold"><strong>const</strong></span> time_duration_type &amp;) <span class="bold"><strong>const</strong></span>;
+  <span class="type">OutItrT</span> <a href="time_facet.html#id2479327-bb">put</a>(OutItrT, std::ios_base &amp;, char_type, <span class="bold"><strong>const</strong></span> period_type &amp;) <span class="bold"><strong>const</strong></span>;
+
+  <span class="emphasis"><em>// <a href="time_facet.html#id2478751-bb">protected static functions</a></em></span>
+  <span class="type">string_type</span> <a href="time_facet.html#id2478756-bb">fractional_seconds_as_string</a>(<span class="bold"><strong>const</strong></span> time_duration_type &amp;, <span class="bold"><strong>bool</strong></span>) ;
+
+  <span class="bold"><strong>static</strong></span> const char_type * fractional_seconds_format;
+  <span class="bold"><strong>static</strong></span> const char_type * fractional_seconds_or_none_format;
+  <span class="bold"><strong>static</strong></span> const char_type * seconds_with_fractional_seconds_format;
+  <span class="bold"><strong>static</strong></span> const char_type * seconds_format;
+  <span class="bold"><strong>static</strong></span> const char_type * standard_format;
+  <span class="bold"><strong>static</strong></span> const char_type * zone_abbrev_format;
+  <span class="bold"><strong>static</strong></span> const char_type * zone_name_format;
+  <span class="bold"><strong>static</strong></span> const char_type * zone_iso_format;
+  <span class="bold"><strong>static</strong></span> const char_type * zone_iso_extended_format;
+  <span class="bold"><strong>static</strong></span> const char_type * posix_zone_string_format;
+  <span class="bold"><strong>static</strong></span> const char_type * duration_seperator;
+  <span class="bold"><strong>static</strong></span> const char_type * duration_sign_always;
+  <span class="bold"><strong>static</strong></span> const char_type * duration_sign_negative_only;
+  <span class="bold"><strong>static</strong></span> const char_type * negative_sign;
+  <span class="bold"><strong>static</strong></span> const char_type * positive_sign;
+  <span class="bold"><strong>static</strong></span> const char_type * iso_time_format_specifier;
+  <span class="bold"><strong>static</strong></span> const char_type * iso_time_format_extended_specifier;
+  <span class="bold"><strong>static</strong></span> const char_type * default_time_format;
+  <span class="bold"><strong>static</strong></span> const char_type * default_time_duration_format;
+  <span class="bold"><strong>static</strong></span> std::locale::id id;
+};</pre></div>
+<div class="refsect1" lang="en">
+<a name="id2656501"></a><h2>Description</h2>
+<p>Facet used for format-based output of time types This class provides for the use of format strings to output times. In addition to the flags for formatting date elements, the following are the allowed format flags:</p>
+<div class="itemizedlist"><ul type="disc">
+<li><p>x X =&gt; default format - enables addition of more flags to default (ie. "%x %X %z")</p></li>
+<li><p>f =&gt; fractional seconds ".123456"</p></li>
+<li><p>F =&gt; fractional seconds or none: like frac sec but empty if frac sec == 0</p></li>
+<li><p>s =&gt; seconds w/ fractional sec "02.123" (this is the same as "%S%f)</p></li>
+<li><p>S =&gt; seconds "02"</p></li>
+<li><p>z =&gt; abbreviated time zone "EDT"</p></li>
+<li><p>Z =&gt; full time zone name "Eastern Daylight Time" </p></li>
+</ul></div>
+<div class="refsect2" lang="en">
+<a name="id2656548"></a><h3>
+<a name="time_facetconstruct-copy-destruct"></a><code class="computeroutput">time_facet</code> construct/copy/destruct</h3>
+<div class="orderedlist"><ol type="1">
+<li><pre class="literallayout"><a name="id2451781-bb"></a>time_facet(::size_t a_ref = 0);</pre></li>
+<li><pre class="literallayout"><a name="id2451803-bb"></a>time_facet(<span class="bold"><strong>const</strong></span> char_type * a_format,
+           period_formatter_type period_formatter = period_formatter_type(),
+           <span class="bold"><strong>const</strong></span> special_values_formatter_type &amp; special_value_formatter = special_values_formatter_type(),
+           date_gen_formatter_type dg_formatter = date_gen_formatter_type(),
+           ::size_t a_ref = 0);</pre></li>
+</ol></div>
+</div>
+<div class="refsect2" lang="en">
+<a name="id2656615"></a><h3>
+<a name="id2442387-bb"></a><code class="computeroutput">time_facet</code> public member functions</h3>
+<div class="orderedlist"><ol type="1">
+<li><pre class="literallayout"><span class="type">std::locale::id &amp;</span> <a name="id2442392-bb"></a>__get_id(<span class="bold"><strong>void</strong></span> ) <span class="bold"><strong>const</strong></span>;</pre></li>
+<li><pre class="literallayout"><span class="type"><span class="bold"><strong>void</strong></span></span> <a name="id2442414-bb"></a>time_duration_format(<span class="bold"><strong>const</strong></span> char_type *<span class="bold"><strong>const</strong></span> format) ;</pre></li>
+<li><pre class="literallayout"><span class="type"><span class="bold"><strong>virtual</strong></span> <span class="bold"><strong>void</strong></span></span> <a name="id2442440-bb"></a>set_iso_format() ;</pre></li>
+<li><pre class="literallayout"><span class="type"><span class="bold"><strong>virtual</strong></span> <span class="bold"><strong>void</strong></span></span> <a name="id2442452-bb"></a>set_iso_extended_format() ;</pre></li>
+<li><pre class="literallayout"><span class="type">OutItrT</span> <a name="id2442465-bb"></a>put(OutItrT a_next, std::ios_base &amp; a_ios, char_type a_fill,
+            <span class="bold"><strong>const</strong></span> time_type &amp; a_time) <span class="bold"><strong>const</strong></span>;</pre></li>
+<li><pre class="literallayout"><span class="type">OutItrT</span> <a name="id2479271-bb"></a>put(OutItrT a_next, std::ios_base &amp; a_ios, char_type a_fill,
+            <span class="bold"><strong>const</strong></span> time_duration_type &amp; a_time_dur) <span class="bold"><strong>const</strong></span>;</pre></li>
+<li><pre class="literallayout"><span class="type">OutItrT</span> <a name="id2479327-bb"></a>put(OutItrT next, std::ios_base &amp; a_ios, char_type fill,
+            <span class="bold"><strong>const</strong></span> period_type &amp; p) <span class="bold"><strong>const</strong></span>;</pre></li>
+</ol></div>
+</div>
+<div class="refsect2" lang="en">
+<a name="id2656847"></a><h3>
+<a name="id2478751-bb"></a><code class="computeroutput">time_facet</code> protected static functions</h3>
+<div class="orderedlist"><ol type="1"><li><pre class="literallayout"><span class="type">string_type</span> <a name="id2478756-bb"></a>fractional_seconds_as_string(<span class="bold"><strong>const</strong></span> time_duration_type &amp; a_time,
+                                         <span class="bold"><strong>bool</strong></span> null_when_zero) ;</pre></li></ol></div>
+</div>
+</div>
+</div>
+<table width="100%"><tr>
+<td align="left"></td>
+<td align="right"><small>Copyright © 2001-2005 CrystalClear Software, Inc</small></td>
+</tr></table>
+<hr>
+<div class="spirit-nav">
+<a accesskey="p" href="time_formats.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2417782"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="time_input_facet.html"><img src="images/next.png" alt="Next"></a>
+</div>
+</body>
+</html>