3
3
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4
4
<title>Class template ymd_formatter</title>
5
5
<link rel="stylesheet" href="boostbook.css" type="text/css">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
7
7
<link rel="start" href="index.html" title="The Boost C++ Libraries">
8
<link rel="up" href="date_time/doxy.html#id891955" title="Header <boost/date_time/date_formatting.hpp>">
8
<link rel="up" href="date_time/doxy.html#id2352409" title="Header <boost/date_time/date_formatting.hpp>">
9
9
<link rel="prev" href="month_formatter.html" title="Class template month_formatter">
10
10
<link rel="next" href="date_formatter.html" title="Class template date_formatter">
22
22
<div class="spirit-nav">
23
<a accesskey="p" href="month_formatter.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id891955"><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="date_formatter.html"><img src="images/next.png" alt="Next"></a>
23
<a accesskey="p" href="month_formatter.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2352409"><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="date_formatter.html"><img src="images/next.png" alt="Next"></a>
25
25
<div class="refentry" lang="en">
26
26
<a name="ymd_formatter"></a><div class="titlepage"></div>
33
33
<span class="bold"><strong>class</strong></span> ymd_formatter {
34
34
<span class="bold"><strong>public</strong></span>:
36
��<span class="emphasis"><em>// <a href="ymd_formatter.html#id1037451-bb">public static functions</a></em></span>
37
��<span class="type">std::basic_string< charT ></span> <a href="ymd_formatter.html#id1037456-bb">ymd_to_string</a>(ymd_type) ;
38
��<span class="type">std::string</span> <a href="ymd_formatter.html#id1104276-bb">ymd_to_string</a>(ymd_type) ;
36
��<span class="emphasis"><em>// <a href="ymd_formatter.html#id2507040-bb">public static functions</a></em></span>
37
��<span class="type">std::basic_string< charT ></span> <a href="ymd_formatter.html#id2507045-bb">ymd_to_string</a>(ymd_type) ;
38
��<span class="type">std::string</span> <a href="ymd_formatter.html#id2439997-bb">ymd_to_string</a>(ymd_type) ;
40
40
<div class="refsect1" lang="en">
41
<a name="id1069026"></a><h2>Description</h2>
41
<a name="id2619378"></a><h2>Description</h2>
42
42
<div class="refsect2" lang="en">
43
<a name="id1069029"></a><h3>
44
<a name="id1037451-bb"></a><code class="computeroutput">ymd_formatter</code> public static functions</h3>
43
<a name="id2619382"></a><h3>
44
<a name="id2507040-bb"></a><code class="computeroutput">ymd_formatter</code> public static functions</h3>
45
45
<div class="orderedlist"><ol type="1">
47
<pre class="literallayout"><span class="type">std::basic_string< charT ></span> <a name="id1037456-bb"></a>ymd_to_string(ymd_type ymd) ;</pre>
47
<pre class="literallayout"><span class="type">std::basic_string< charT ></span> <a name="id2507045-bb"></a>ymd_to_string(ymd_type ymd) ;</pre>
48
48
<p>This is standard code for handling date formatting with year-month-day based date information. This function uses the format_type to control whether the string will contain separator characters, and if so what the character will be. In addtion, it can format the month as either an integer or a string as controled by the formatting policy </p>
51
<pre class="literallayout"><span class="type">std::string</span> <a name="id1104276-bb"></a>ymd_to_string(ymd_type ymd) ;</pre>
51
<pre class="literallayout"><span class="type">std::string</span> <a name="id2439997-bb"></a>ymd_to_string(ymd_type ymd) ;</pre>
52
52
<p>This is standard code for handling date formatting with year-month-day based date information. This function uses the format_type to control whether the string will contain separator characters, and if so what the character will be. In addtion, it can format the month as either an integer or a string as controled by the formatting policy </p>
58
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
58
<table width="100%"><tr>
59
59
<td align="left"></td>
60
60
<td align="right"><small>Copyright � 2001-2005 CrystalClear Software, Inc</small></td>
63
63
<div class="spirit-nav">
64
<a accesskey="p" href="month_formatter.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id891955"><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="date_formatter.html"><img src="images/next.png" alt="Next"></a>
64
<a accesskey="p" href="month_formatter.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2352409"><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="date_formatter.html"><img src="images/next.png" alt="Next"></a>