Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/doc/html/custom_time_zone.html @ 25

Last change on this file since 25 was 12, checked in by landauf, 17 years ago

added boost

File size: 9.5 KB
Line 
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4<title>Class custom_time_zone</title>
5<link rel="stylesheet" href="boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
7<link rel="start" href="index.html" title="The Boost C++ Libraries">
8<link rel="up" href="date_time/doxy.html#id2474850" title="Header &lt;boost/date_time/local_time/custom_time_zone.hpp&gt;">
9<link rel="prev" href="duration_from_string.html" title="Function duration_from_string">
10<link rel="next" href="id2475183.html" title="Function operator+">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%">
14<td valign="top"><img alt="boost.png (6897 bytes)" width="277" height="86" src="../../boost.png"></td>
15<td align="center"><a href="../../index.htm">Home</a></td>
16<td align="center"><a href="../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="../../people/people.htm">People</a></td>
18<td align="center"><a href="../../more/faq.htm">FAQ</a></td>
19<td align="center"><a href="../../more/index.htm">More</a></td>
20</table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="duration_from_string.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2474850"><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="id2475183.html"><img src="images/next.png" alt="Next"></a>
24</div>
25<div class="refentry" lang="en">
26<a name="custom_time_zone"></a><div class="titlepage"></div>
27<div class="refnamediv">
28<h2><span class="refentrytitle">Class custom_time_zone</span></h2>
29<p>boost::local_time::custom_time_zone &#8212; A real time zone. </p>
30</div>
31<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
32<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">
33<span class="bold"><strong>class</strong></span> custom_time_zone : <span class="bold"><strong>public</strong></span> boost::local_time::time_zone {
34<span class="bold"><strong>public</strong></span>:
35  <span class="emphasis"><em>// types</em></span>
36  <span class="bold"><strong>typedef</strong></span> boost::posix_time::time_duration time_duration_type;
37  <span class="bold"><strong>typedef</strong></span> <a href="time_zone.html" title="Class time_zone">time_zone</a>                        base_type;         
38  <span class="bold"><strong>typedef</strong></span> base_type::string_type           string_type;       
39  <span class="bold"><strong>typedef</strong></span> base_type::stringstream_type     stringstream_type; 
40
41  <span class="emphasis"><em>// <a href="custom_time_zone.html#custom_time_zoneconstruct-copy-destruct">construct/copy/destruct</a></em></span>
42  <a href="custom_time_zone.html#id2475100-bb">custom_time_zone</a>(<span class="bold"><strong>const</strong></span> time_zone_names &amp;, <span class="bold"><strong>const</strong></span> time_duration_type &amp;,
43                   <span class="bold"><strong>const</strong></span> dst_adjustment_offsets &amp;,
44                   boost::shared_ptr&lt; dst_calc_rule &gt;);
45  <a href="custom_time_zone.html#id2475143-bb">~custom_time_zone</a>();
46
47  <span class="emphasis"><em>// <a href="custom_time_zone.html#id2474922-bb">public member functions</a></em></span>
48  <span class="type"><span class="bold"><strong>virtual</strong></span> std::string</span> <a href="custom_time_zone.html#id2474927-bb">dst_zone_abbrev</a>() <span class="bold"><strong>const</strong></span>;
49  <span class="type"><span class="bold"><strong>virtual</strong></span> std::string</span> <a href="custom_time_zone.html#id2474939-bb">std_zone_abbrev</a>() <span class="bold"><strong>const</strong></span>;
50  <span class="type"><span class="bold"><strong>virtual</strong></span> std::string</span> <a href="custom_time_zone.html#id2474952-bb">dst_zone_name</a>() <span class="bold"><strong>const</strong></span>;
51  <span class="type"><span class="bold"><strong>virtual</strong></span> std::string</span> <a href="custom_time_zone.html#id2474965-bb">std_zone_name</a>() <span class="bold"><strong>const</strong></span>;
52  <span class="type"><span class="bold"><strong>virtual</strong></span> <span class="bold"><strong>bool</strong></span></span> <a href="custom_time_zone.html#id2474977-bb">has_dst</a>() <span class="bold"><strong>const</strong></span>;
53  <span class="type"><span class="bold"><strong>virtual</strong></span> posix_time::ptime</span> <a href="custom_time_zone.html#id2474994-bb">dst_local_start_time</a>(gregorian::greg_year) <span class="bold"><strong>const</strong></span>;
54  <span class="type"><span class="bold"><strong>virtual</strong></span> posix_time::ptime</span> <a href="custom_time_zone.html#id2475021-bb">dst_local_end_time</a>(gregorian::greg_year) <span class="bold"><strong>const</strong></span>;
55  <span class="type"><span class="bold"><strong>virtual</strong></span> time_duration_type</span> <a href="custom_time_zone.html#id2475048-bb">base_utc_offset</a>() <span class="bold"><strong>const</strong></span>;
56  <span class="type"><span class="bold"><strong>virtual</strong></span> time_duration_type</span> <a href="custom_time_zone.html#id2475064-bb">dst_offset</a>() <span class="bold"><strong>const</strong></span>;
57  <span class="type"><span class="bold"><strong>virtual</strong></span> string_type</span> <a href="custom_time_zone.html#id2475081-bb">to_posix_string</a>() <span class="bold"><strong>const</strong></span>;
58};</pre></div>
59<div class="refsect1" lang="en">
60<a name="id2680872"></a><h2>Description</h2>
61<div class="refsect2" lang="en">
62<a name="id2680875"></a><h3>
63<a name="custom_time_zoneconstruct-copy-destruct"></a><code class="computeroutput">custom_time_zone</code> construct/copy/destruct</h3>
64<div class="orderedlist"><ol type="1">
65<li><pre class="literallayout"><a name="id2475100-bb"></a>custom_time_zone(<span class="bold"><strong>const</strong></span> time_zone_names &amp; zone_names,
66                 <span class="bold"><strong>const</strong></span> time_duration_type &amp; base_utc_offset,
67                 <span class="bold"><strong>const</strong></span> dst_adjustment_offsets &amp; dst_offset,
68                 boost::shared_ptr&lt; dst_calc_rule &gt; calc_rule);</pre></li>
69<li><pre class="literallayout"><a name="id2475143-bb"></a>~custom_time_zone();</pre></li>
70</ol></div>
71</div>
72<div class="refsect2" lang="en">
73<a name="id2680949"></a><h3>
74<a name="id2474922-bb"></a><code class="computeroutput">custom_time_zone</code> public member functions</h3>
75<div class="orderedlist"><ol type="1">
76<li><pre class="literallayout"><span class="type"><span class="bold"><strong>virtual</strong></span> std::string</span> <a name="id2474927-bb"></a>dst_zone_abbrev() <span class="bold"><strong>const</strong></span>;</pre></li>
77<li><pre class="literallayout"><span class="type"><span class="bold"><strong>virtual</strong></span> std::string</span> <a name="id2474939-bb"></a>std_zone_abbrev() <span class="bold"><strong>const</strong></span>;</pre></li>
78<li><pre class="literallayout"><span class="type"><span class="bold"><strong>virtual</strong></span> std::string</span> <a name="id2474952-bb"></a>dst_zone_name() <span class="bold"><strong>const</strong></span>;</pre></li>
79<li><pre class="literallayout"><span class="type"><span class="bold"><strong>virtual</strong></span> std::string</span> <a name="id2474965-bb"></a>std_zone_name() <span class="bold"><strong>const</strong></span>;</pre></li>
80<li><pre class="literallayout"><span class="type"><span class="bold"><strong>virtual</strong></span> <span class="bold"><strong>bool</strong></span></span> <a name="id2474977-bb"></a>has_dst() <span class="bold"><strong>const</strong></span>;</pre></li>
81<li><pre class="literallayout"><span class="type"><span class="bold"><strong>virtual</strong></span> posix_time::ptime</span> <a name="id2474994-bb"></a>dst_local_start_time(gregorian::greg_year y) <span class="bold"><strong>const</strong></span>;</pre></li>
82<li><pre class="literallayout"><span class="type"><span class="bold"><strong>virtual</strong></span> posix_time::ptime</span> <a name="id2475021-bb"></a>dst_local_end_time(gregorian::greg_year y) <span class="bold"><strong>const</strong></span>;</pre></li>
83<li><pre class="literallayout"><span class="type"><span class="bold"><strong>virtual</strong></span> time_duration_type</span> <a name="id2475048-bb"></a>base_utc_offset() <span class="bold"><strong>const</strong></span>;</pre></li>
84<li><pre class="literallayout"><span class="type"><span class="bold"><strong>virtual</strong></span> time_duration_type</span> <a name="id2475064-bb"></a>dst_offset() <span class="bold"><strong>const</strong></span>;</pre></li>
85<li><pre class="literallayout"><span class="type"><span class="bold"><strong>virtual</strong></span> string_type</span> <a name="id2475081-bb"></a>to_posix_string() <span class="bold"><strong>const</strong></span>;</pre></li>
86</ol></div>
87</div>
88</div>
89</div>
90<table width="100%"><tr>
91<td align="left"></td>
92<td align="right"><small>Copyright © 2001-2005 CrystalClear Software, Inc</small></td>
93</tr></table>
94<hr>
95<div class="spirit-nav">
96<a accesskey="p" href="duration_from_string.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2474850"><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="id2475183.html"><img src="images/next.png" alt="Next"></a>
97</div>
98</body>
99</html>
Note: See TracBrowser for help on using the repository browser.