summaryrefslogtreecommitdiff
path: root/doc/html/greg_day.html
blob: 9326944c759b7adf23461c7f63f9e65f4bf03649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Class greg_day</title>
<link rel="stylesheet" href="boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="index.html" title="The Boost C++ Libraries">
<link rel="up" href="date_time/doxy.html#id1032770" title="Header &lt;boost/date_time/gregorian/greg_day.hpp&gt;">
<link rel="prev" href="bad_day_of_month.html" title="Struct bad_day_of_month">
<link rel="next" href="bad_day_of_year.html" title="Struct bad_day_of_year">
</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="bad_day_of_month.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id1032770"><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="bad_day_of_year.html"><img src="images/next.png" alt="Next"></a>
</div>
<div class="refentry" lang="en">
<a name="greg_day"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class greg_day</span></h2>
<p>boost::gregorian::greg_day &#8212; Represent a day of the month (range 1 - 31). </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>class</strong></span> greg_day {
<span class="bold"><strong>public</strong></span>:
  <span class="emphasis"><em>// <a href="greg_day.html#greg_dayconstruct-copy-destruct">construct/copy/destruct</a></em></span>
  <a href="greg_day.html#id942247-bb">greg_day</a>(<span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span>);

  <span class="emphasis"><em>// <a href="greg_day.html#id799980-bb">public member functions</a></em></span>
  <span class="type"><span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span></span> <a href="greg_day.html#id828727-bb">as_number</a>() <span class="bold"><strong>const</strong></span>;
  <a href="greg_day.html#id942232-bb"><span class="bold"><strong>operator</strong></span> <span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span></a>() <span class="bold"><strong>const</strong></span>;
};</pre></div>
<div class="refsect1" lang="en">
<a name="id1150397"></a><h2>Description</h2>
<p>This small class allows for simple conversion an integer value into a day of the month for a standard gregorian calendar. The type is automatically range checked so values outside of the range 1-31 will cause a bad_day_of_month exception </p>
<div class="refsect2" lang="en">
<a name="id1150407"></a><h3>
<a name="greg_dayconstruct-copy-destruct"></a><code class="computeroutput">greg_day</code> construct/copy/destruct</h3>
<div class="orderedlist"><ol type="1"><li><pre class="literallayout"><a name="id942247-bb"></a>greg_day(<span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span> day_of_month);</pre></li></ol></div>
</div>
<div class="refsect2" lang="en">
<a name="id1150451"></a><h3>
<a name="id799980-bb"></a><code class="computeroutput">greg_day</code> public member functions</h3>
<div class="orderedlist"><ol type="1">
<li><pre class="literallayout"><span class="type"><span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span></span> <a name="id828727-bb"></a>as_number() <span class="bold"><strong>const</strong></span>;</pre></li>
<li><pre class="literallayout"><a name="id942232-bb"></a><span class="bold"><strong>operator</strong></span> <span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span>() <span class="bold"><strong>const</strong></span>;</pre></li>
</ol></div>
</div>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" 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="bad_day_of_month.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id1032770"><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="bad_day_of_year.html"><img src="images/next.png" alt="Next"></a>
</div>
</body>
</html>