File: Poco.LocalDateTime.html

package info (click to toggle)
poco-doc 1.3.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,096 kB
  • sloc: makefile: 9
file content (358 lines) | stat: -rw-r--r-- 27,428 bytes parent folder | download | duplicates (3)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Class Poco::LocalDateTime</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="author" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="publisher" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="copyright" content="Copyright (c) 2009, Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="language" content="en"/>
<meta name="date" content="2009-11-24"/>
<meta name="generator" content="PocoDoc"/>
<link rel="stylesheet" href="css/styles.css" type="text/css"/>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
<div class="header">
<h1 class="namespace"><a href="Poco.html" class="namespace">Poco</a></h1>
<h1 class="symbol">class LocalDateTime</h1>
</div>
<div class="body">
<p>
<b>Library:</b> Foundation<br />
<b>Package:</b> DateTime<br />
<b>Header:</b> Poco/LocalDateTime.h</p>
<h2>Description</h2>
<div class="description">
<p>This class represents an instant in local time (as opposed to UTC), expressed in years, months, days,  hours, minutes, seconds and milliseconds based on the  Gregorian calendar. </p>
<p>In addition to the date and time, the class also  maintains a time zone differential, which denotes the difference in seconds from UTC to local time, i.e. UTC = local time - time zone differential. </p>
<p>Although <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> supports relational and arithmetic operators, all date/time comparisons and date/time arithmetics should be done in UTC, using the <a href="Poco.DateTime.html" title="class Poco::DateTime">DateTime</a> or <a href="Poco.Timestamp.html" title="class Poco::Timestamp">Timestamp</a> class for better performance. The relational operators normalize the dates/times involved to UTC before carrying out the comparison. </p>
<p>The time zone differential is based on the input date and time and current time zone. A number of constructors accept an explicit time zone differential parameter. These should not be used since daylight savings time processing is impossible since the time zone is unknown. Each of the constructors accepting a tzd parameter have been marked as deprecated and may be removed in a future revision. </p>
</div>
<h2>Member Summary</h2>
<p><b>Member Functions: </b><a href="Poco.LocalDateTime.html#7981" title="Poco::LocalDateTime::adjustForTzd()">adjustForTzd</a>, <a href="Poco.LocalDateTime.html#7909" title="Poco::LocalDateTime::assign()">assign</a>, <a href="Poco.LocalDateTime.html#7937" title="Poco::LocalDateTime::day()">day</a>, <a href="Poco.LocalDateTime.html#7938" title="Poco::LocalDateTime::dayOfWeek()">dayOfWeek</a>, <a href="Poco.LocalDateTime.html#7939" title="Poco::LocalDateTime::dayOfYear()">dayOfYear</a>, <a href="Poco.LocalDateTime.html#7979" title="Poco::LocalDateTime::determineTzd()">determineTzd</a>, <a href="Poco.LocalDateTime.html#7982" title="Poco::LocalDateTime::dstOffset()">dstOffset</a>, <a href="Poco.LocalDateTime.html#7940" title="Poco::LocalDateTime::hour()">hour</a>, <a href="Poco.LocalDateTime.html#7941" title="Poco::LocalDateTime::hourAMPM()">hourAMPM</a>, <a href="Poco.LocalDateTime.html#7942" title="Poco::LocalDateTime::isAM()">isAM</a>, <a href="Poco.LocalDateTime.html#7943" title="Poco::LocalDateTime::isPM()">isPM</a>, <a href="Poco.LocalDateTime.html#7948" title="Poco::LocalDateTime::julianDay()">julianDay</a>, <a href="Poco.LocalDateTime.html#7947" title="Poco::LocalDateTime::microsecond()">microsecond</a>, <a href="Poco.LocalDateTime.html#7946" title="Poco::LocalDateTime::millisecond()">millisecond</a>, <a href="Poco.LocalDateTime.html#7944" title="Poco::LocalDateTime::minute()">minute</a>, <a href="Poco.LocalDateTime.html#7934" title="Poco::LocalDateTime::month()">month</a>, <a href="Poco.LocalDateTime.html#7955" title="Poco::LocalDateTime::operator !=()">operator&nbsp;!=</a>, <a href="Poco.LocalDateTime.html#7965" title="Poco::LocalDateTime::operator +()">operator&nbsp;+</a>, <a href="Poco.LocalDateTime.html#7971" title="Poco::LocalDateTime::operator +=()">operator&nbsp;+=</a>, <a href="Poco.LocalDateTime.html#7967" title="Poco::LocalDateTime::operator -()">operator&nbsp;-</a>, <a href="Poco.LocalDateTime.html#7973" title="Poco::LocalDateTime::operator -=()">operator&nbsp;-=</a>, <a href="Poco.LocalDateTime.html#7957" title="Poco::LocalDateTime::operator <()">operator&nbsp;&lt;</a>, <a href="Poco.LocalDateTime.html#7959" title="Poco::LocalDateTime::operator <=()">operator&nbsp;&lt;=</a>, <a href="Poco.LocalDateTime.html#7903" title="Poco::LocalDateTime::operator =()">operator&nbsp;=</a>, <a href="Poco.LocalDateTime.html#7953" title="Poco::LocalDateTime::operator ==()">operator&nbsp;==</a>, <a href="Poco.LocalDateTime.html#7961" title="Poco::LocalDateTime::operator >()">operator&nbsp;&gt;</a>, <a href="Poco.LocalDateTime.html#7963" title="Poco::LocalDateTime::operator >=()">operator&nbsp;&gt;=</a>, <a href="Poco.LocalDateTime.html#7945" title="Poco::LocalDateTime::second()">second</a>, <a href="Poco.LocalDateTime.html#7931" title="Poco::LocalDateTime::swap()">swap</a>, <a href="Poco.LocalDateTime.html#7951" title="Poco::LocalDateTime::timestamp()">timestamp</a>, <a href="Poco.LocalDateTime.html#7949" title="Poco::LocalDateTime::tzd()">tzd</a>, <a href="Poco.LocalDateTime.html#7950" title="Poco::LocalDateTime::utc()">utc</a>, <a href="Poco.LocalDateTime.html#7952" title="Poco::LocalDateTime::utcTime()">utcTime</a>, <a href="Poco.LocalDateTime.html#7935" title="Poco::LocalDateTime::week()">week</a>, <a href="Poco.LocalDateTime.html#7933" title="Poco::LocalDateTime::year()">year</a></p>
<h2>Constructors</h2>
<h3><a name="7866">LocalDateTime</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a>();</p>
<div class="description">
<p>Creates a <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> with the current date/time  for the current time zone. </p>
</div>
<h3><a name="7886">LocalDateTime</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.DateTime.html" title="class Poco::DateTime">DateTime</a> &amp; dateTime<br />);</p>
<div class="description">
<p>Creates a <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> from the UTC time given in dateTime, using the time zone differential of the current time zone. </p>
</div>
<h3><a name="7895">LocalDateTime</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;double julianDay<br />);</p>
<div class="description">
<p>Creates a <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> for the given Julian day in the local time zone. </p>
</div>
<h3><a name="7900">LocalDateTime</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; dateTime<br />);</p>
<div class="description">
<p>Copy constructor. Creates the <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> from another one. </p>
</div>
<h3><a name="7888">LocalDateTime</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;int tzd,<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.DateTime.html" title="class Poco::DateTime">DateTime</a> &amp; dateTime<br />);</p>
<div class="description">
<p><b>Deprecated.</b> <i>This function is deprecated and should no longer be used.</i></p>
</div>
<div class="description">
<p>Creates a <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> from the UTC time given in dateTime, using the given time zone differential. Adjusts dateTime for the given time zone differential. </p>
</div>
<h3><a name="7897">LocalDateTime</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;int tzd,<br />&nbsp;&nbsp;&nbsp;&nbsp;double julianDay<br />);</p>
<div class="description">
<p><b>Deprecated.</b> <i>This function is deprecated and should no longer be used.</i></p>
</div>
<div class="description">
<p>Creates a <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> for the given Julian day in the time zone denoted by the time zone differential in tzd. </p>
</div>
<h3><a name="7891">LocalDateTime</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;int tzd,<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.DateTime.html" title="class Poco::DateTime">DateTime</a> &amp; dateTime,<br />&nbsp;&nbsp;&nbsp;&nbsp;bool adjust<br />);</p>
<div class="description">
<p><b>Deprecated.</b> <i>This function is deprecated and should no longer be used.</i></p>
</div>
<div class="description">
<p>Creates a <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> from the UTC time given in dateTime, using the given time zone differential. If adjust is true,  adjusts dateTime for the given time zone differential. </p>
</div>
<h3><a name="7867">LocalDateTime</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;int year,<br />&nbsp;&nbsp;&nbsp;&nbsp;int month,<br />&nbsp;&nbsp;&nbsp;&nbsp;int day,<br />&nbsp;&nbsp;&nbsp;&nbsp;int hour = 0,<br />&nbsp;&nbsp;&nbsp;&nbsp;int minute = 0,<br />&nbsp;&nbsp;&nbsp;&nbsp;int second = 0,<br />&nbsp;&nbsp;&nbsp;&nbsp;int millisecond = 0,<br />&nbsp;&nbsp;&nbsp;&nbsp;int microsecond = 0<br />);</p>
<div class="description">
<p>Creates a <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> for the given Gregorian local date and time. </p>
<ul>
<li>year is from 0 to 9999. </li>
<li>month is from 1 to 12. </li>
<li>day is from 1 to 31. </li>
<li>hour is from 0 to 23. </li>
<li>minute is from 0 to 59. </li>
<li>second is from 0 to 59. </li>
<li>millisecond is from 0 to 999. </li>
<li>microsecond is from 0 to 999. </li>
</ul>
</div>
<h3><a name="7876">LocalDateTime</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;int tzd,<br />&nbsp;&nbsp;&nbsp;&nbsp;int year,<br />&nbsp;&nbsp;&nbsp;&nbsp;int month,<br />&nbsp;&nbsp;&nbsp;&nbsp;int day,<br />&nbsp;&nbsp;&nbsp;&nbsp;int hour,<br />&nbsp;&nbsp;&nbsp;&nbsp;int minute,<br />&nbsp;&nbsp;&nbsp;&nbsp;int second,<br />&nbsp;&nbsp;&nbsp;&nbsp;int millisecond,<br />&nbsp;&nbsp;&nbsp;&nbsp;int microsecond<br />);</p>
<div class="description">
<p><b>Deprecated.</b> <i>This function is deprecated and should no longer be used.</i></p>
</div>
<div class="description">
<p>Creates a <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> for the given Gregorian date and time in the time zone denoted by the time zone differential in tzd. </p>
<ul>
<li>tzd is in seconds. </li>
<li>year is from 0 to 9999. </li>
<li>month is from 1 to 12. </li>
<li>day is from 1 to 31. </li>
<li>hour is from 0 to 23. </li>
<li>minute is from 0 to 59. </li>
<li>second is from 0 to 59. </li>
<li>millisecond is from 0 to 999. </li>
<li>microsecond is from 0 to 999. </li>
</ul>
</div>
<h3><a name="7975">LocalDateTime</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Timestamp.html#11150" title="Poco::Timestamp::UtcTimeVal">Timestamp::UtcTimeVal</a> utcTime,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Timestamp.html#11151" title="Poco::Timestamp::TimeDiff">Timestamp::TimeDiff</a> diff,<br />&nbsp;&nbsp;&nbsp;&nbsp;int tzd<br />);</p>
<div class="description">
<p></p>
</div>
<h2>Destructor</h2>
<h3><a name="7902">~LocalDateTime</a></h3>
<p class="decl">~<a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a>();</p>
<div class="description">
<p>Destroys the <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a>. </p>
</div>
<h2>Member Functions</h2>
<h3><a name="7909">assign</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; assign(<br />&nbsp;&nbsp;&nbsp;&nbsp;int year,<br />&nbsp;&nbsp;&nbsp;&nbsp;int month,<br />&nbsp;&nbsp;&nbsp;&nbsp;int day,<br />&nbsp;&nbsp;&nbsp;&nbsp;int hour = 0,<br />&nbsp;&nbsp;&nbsp;&nbsp;int minute = 0,<br />&nbsp;&nbsp;&nbsp;&nbsp;int second = 0,<br />&nbsp;&nbsp;&nbsp;&nbsp;int millisecond = 0,<br />&nbsp;&nbsp;&nbsp;&nbsp;int microseconds = 0<br />);</p>
<div class="description">
<p>Assigns a Gregorian local date and time. </p>
<ul>
<li>year is from 0 to 9999. </li>
<li>month is from 1 to 12. </li>
<li>day is from 1 to 31. </li>
<li>hour is from 0 to 23. </li>
<li>minute is from 0 to 59. </li>
<li>second is from 0 to 59. </li>
<li>millisecond is from 0 to 999. </li>
<li>microsecond is from 0 to 999. </li>
</ul>
</div>
<h3><a name="7918">assign</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; assign(<br />&nbsp;&nbsp;&nbsp;&nbsp;int tzd,<br />&nbsp;&nbsp;&nbsp;&nbsp;int year,<br />&nbsp;&nbsp;&nbsp;&nbsp;int month,<br />&nbsp;&nbsp;&nbsp;&nbsp;int day,<br />&nbsp;&nbsp;&nbsp;&nbsp;int hour,<br />&nbsp;&nbsp;&nbsp;&nbsp;int minute,<br />&nbsp;&nbsp;&nbsp;&nbsp;int second,<br />&nbsp;&nbsp;&nbsp;&nbsp;int millisecond,<br />&nbsp;&nbsp;&nbsp;&nbsp;int microseconds<br />);</p>
<div class="description">
<p><b>Deprecated.</b> <i>This function is deprecated and should no longer be used.</i></p>
</div>
<div class="description">
<p>Assigns a Gregorian local date and time in the time zone denoted by the time zone differential in tzd. </p>
<ul>
<li>tzd is in seconds. </li>
<li>year is from 0 to 9999. </li>
<li>month is from 1 to 12. </li>
<li>day is from 1 to 31. </li>
<li>hour is from 0 to 23. </li>
<li>minute is from 0 to 59. </li>
<li>second is from 0 to 59. </li>
<li>millisecond is from 0 to 999. </li>
<li>microsecond is from 0 to 999. </li>
</ul>
</div>
<h3><a name="7928">assign</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; assign(<br />&nbsp;&nbsp;&nbsp;&nbsp;int tzd,<br />&nbsp;&nbsp;&nbsp;&nbsp;double julianDay<br />);</p>
<div class="description">
<p><b>Deprecated.</b> <i>This function is deprecated and should no longer be used.</i></p>
</div>
<div class="description">
<p>Assigns a Julian day in the time zone denoted by the time zone differential in tzd. </p>
</div>
<h3><a name="7937">day</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int day() const;</p>
<div class="description">
<p>Returns the day witin the month (1 to 31). </p>
</div>
<h3><a name="7938">dayOfWeek</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int dayOfWeek() const;</p>
<div class="description">
<p>Returns the weekday (0 to 6, where 0 = Sunday, 1 = Monday, ..., 6 = Saturday). </p>
</div>
<h3><a name="7939">dayOfYear</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int dayOfYear() const;</p>
<div class="description">
<p>Returns the number of the day in the year. January 1 is 1, February 1 is 32, etc. </p>
</div>
<h3><a name="7940">hour</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int hour() const;</p>
<div class="description">
<p>Returns the hour (0 to 23). </p>
</div>
<h3><a name="7941">hourAMPM</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int hourAMPM() const;</p>
<div class="description">
<p>Returns the hour (0 to 12). </p>
</div>
<h3><a name="7942">isAM</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">bool isAM() const;</p>
<div class="description">
<p>Returns true if hour &lt; 12; </p>
</div>
<h3><a name="7943">isPM</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">bool isPM() const;</p>
<div class="description">
<p>Returns true if hour &gt;= 12. </p>
</div>
<h3><a name="7948">julianDay</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">double julianDay() const;</p>
<div class="description">
<p>Returns the julian day for the date. </p>
</div>
<h3><a name="7947">microsecond</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int microsecond() const;</p>
<div class="description">
<p>Returns the microsecond (0 to 999) </p>
</div>
<h3><a name="7946">millisecond</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int millisecond() const;</p>
<div class="description">
<p>Returns the millisecond (0 to 999) </p>
</div>
<h3><a name="7944">minute</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int minute() const;</p>
<div class="description">
<p>Returns the minute (0 to 59). </p>
</div>
<h3><a name="7934">month</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int month() const;</p>
<div class="description">
<p>Returns the month (1 to 12). </p>
</div>
<h3><a name="7955">operator !=</a></h3>
<p class="decl">bool operator != (<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; dateTime<br />) const;</p>
<div class="description">
<p></p>
</div>
<h3><a name="7965">operator +</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> operator + (<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Timespan.html" title="class Poco::Timespan">Timespan</a> &amp; span<br />) const;</p>
<div class="description">
<p></p>
</div>
<h3><a name="7971">operator +=</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; operator += (<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Timespan.html" title="class Poco::Timespan">Timespan</a> &amp; span<br />);</p>
<div class="description">
<p></p>
</div>
<h3><a name="7967">operator -</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> operator - (<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Timespan.html" title="class Poco::Timespan">Timespan</a> &amp; span<br />) const;</p>
<div class="description">
<p></p>
</div>
<h3><a name="7969">operator -</a></h3>
<p class="decl"><a href="Poco.Timespan.html" title="class Poco::Timespan">Timespan</a> operator - (<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; dateTime<br />) const;</p>
<div class="description">
<p></p>
</div>
<h3><a name="7973">operator -=</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; operator -= (<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Timespan.html" title="class Poco::Timespan">Timespan</a> &amp; span<br />);</p>
<div class="description">
<p></p>
</div>
<h3><a name="7957">operator &lt;</a></h3>
<p class="decl">bool operator &lt; (<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; dateTime<br />) const;</p>
<div class="description">
<p></p>
</div>
<h3><a name="7959">operator &lt;=</a></h3>
<p class="decl">bool operator &lt;= (<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; dateTime<br />) const;</p>
<div class="description">
<p></p>
</div>
<h3><a name="7903">operator =</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; operator = (<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; dateTime<br />);</p>
<div class="description">
<p>Assigns another <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a>. </p>
</div>
<h3><a name="7905">operator =</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; operator = (<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Timestamp.html" title="class Poco::Timestamp">Timestamp</a> &amp; timestamp<br />);</p>
<div class="description">
<p>Assigns a timestamp </p>
</div>
<h3><a name="7907">operator =</a></h3>
<p class="decl"><a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; operator = (<br />&nbsp;&nbsp;&nbsp;&nbsp;double julianDay<br />);</p>
<div class="description">
<p>Assigns a Julian day in the local time zone. </p>
</div>
<h3><a name="7953">operator ==</a></h3>
<p class="decl">bool operator == (<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; dateTime<br />) const;</p>
<div class="description">
<p></p>
</div>
<h3><a name="7961">operator &gt;</a></h3>
<p class="decl">bool operator &gt; (<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; dateTime<br />) const;</p>
<div class="description">
<p></p>
</div>
<h3><a name="7963">operator &gt;=</a></h3>
<p class="decl">bool operator &gt;= (<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; dateTime<br />) const;</p>
<div class="description">
<p></p>
</div>
<h3><a name="7945">second</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int second() const;</p>
<div class="description">
<p>Returns the second (0 to 59). </p>
</div>
<h3><a name="7931">swap</a></h3>
<p class="decl">void swap(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> &amp; dateTime<br />);</p>
<div class="description">
<p>Swaps the <a href="Poco.LocalDateTime.html" title="class Poco::LocalDateTime">LocalDateTime</a> with another one. </p>
</div>
<h3><a name="7951">timestamp</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl"><a href="Poco.Timestamp.html" title="class Poco::Timestamp">Timestamp</a> timestamp() const;</p>
<div class="description">
<p>Returns the date and time expressed as a <a href="Poco.Timestamp.html" title="class Poco::Timestamp">Timestamp</a>. </p>
</div>
<h3><a name="7949">tzd</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int tzd() const;</p>
<div class="description">
<p>Returns the time zone differential. </p>
</div>
<h3><a name="7950">utc</a></h3>
<p class="decl"><a href="Poco.DateTime.html" title="class Poco::DateTime">DateTime</a> utc() const;</p>
<div class="description">
<p>Returns the UTC equivalent for the local date and time. </p>
</div>
<h3><a name="7952">utcTime</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl"><a href="Poco.Timestamp.html#11150" title="Poco::Timestamp::UtcTimeVal">Timestamp::UtcTimeVal</a> utcTime() const;</p>
<div class="description">
<p>Returns the UTC equivalent for the local date and time. </p>
</div>
<h3><a name="7935">week</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int week(<br />&nbsp;&nbsp;&nbsp;&nbsp;int firstDayOfWeek = DateTime::MONDAY<br />) const;</p>
<div class="description">
<p>Returns the week number within the year. FirstDayOfWeek should be either SUNDAY (0) or MONDAY (1). The returned week number will be from 0 to 53. Week number 1 is the week  containing January 4. This is in accordance to ISO 8601. </p>
<p>The following example assumes that firstDayOfWeek is MONDAY. For 2005, which started on a Saturday, week 1 will be the week starting on Monday, January 3. January 1 and 2 will fall within week 0 (or the last week of the previous year). </p>
<p>For 2007, which starts on a Monday, week 1 will be the week startung on Monday, January 1. There will be no week 0 in 2007. </p>
</div>
<h3><a name="7933">year</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int year() const;</p>
<div class="description">
<p>Returns the year. </p>
</div>
<h3><a name="7981">adjustForTzd</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void adjustForTzd();</p>
<div class="description">
<p>Adjust the _dateTime member based on the _tzd member. </p>
</div>
<h3><a name="7979">determineTzd</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void determineTzd(<br />&nbsp;&nbsp;&nbsp;&nbsp;bool adjust = false<br />);</p>
<div class="description">
<p>Recalculate the tzd based on the _dateTime member based on the current timezone using the Standard C runtime functions. If adjust is true, then <a href="Poco.LocalDateTime.html#7981" title="Poco::LocalDateTime::adjustForTzd()">adjustForTzd</a>() is called after the differential is calculated. </p>
</div>
<h3><a name="7982">dstOffset</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">std::time_t dstOffset(<br />&nbsp;&nbsp;&nbsp;&nbsp;int &amp; dstOffset<br />) const;</p>
<div class="description">
<p>Determine the DST offset for the current date/time. </p>
</div>
<p class="footer">POCO C++ Libraries 1.3.6-all<br />
Copyright &copy; 2009, <a href="http://pocoproject.org/" target="_blank">Applied Informatics Software Engineering GmbH and Contributors</a></p>

</div>
</body>
</html>