forked from Unidata/netcdf4-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetcdftime.netcdftime-module.html
More file actions
548 lines (520 loc) · 29 KB
/
netcdftime.netcdftime-module.html
File metadata and controls
548 lines (520 loc) · 29 KB
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
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>netcdftime.netcdftime</title>
<link rel="stylesheet" href="epydoc.css" type="text/css" />
<script type="text/javascript" src="epydoc.js"></script>
</head>
<body bgcolor="white" text="black" link="blue" vlink="#204080"
alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
bgcolor="#a0c0ff" cellspacing="0">
<tr valign="middle">
<!-- Tree link -->
<th> <a
href="module-tree.html">Trees</a> </th>
<!-- Index link -->
<th> <a
href="identifier-index.html">Indices</a> </th>
<!-- Help link -->
<th> <a
href="help.html">Help</a> </th>
<th class="navbar" width="100%"></th>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="100%">
<span class="breadcrumbs">
Package netcdftime ::
Module netcdftime
</span>
</td>
<td>
<table cellpadding="0" cellspacing="0">
<!-- hide/show private -->
</table>
</td>
</tr>
</table>
<!-- ==================== MODULE DESCRIPTION ==================== -->
<h1 class="epydoc">Module netcdftime</h1><p class="nomargin-top"><span class="codelink"><a href="netcdftime.netcdftime-pysrc.html">source code</a></span></p>
<p>Performs conversions of netCDF time coordinate data to/from datetime
objects.</p>
<hr />
<div class="fields"> <p><strong>Version:</strong>
0.9.2
</p>
</div><!-- ==================== CLASSES ==================== -->
<a name="section-Classes"></a>
<table class="summary" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
<td align="left" colspan="2" class="table-header">
<span class="table-header">Classes</span></td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<a href="netcdftime.netcdftime.datetime-class.html" class="summary-name">datetime</a><br />
Phony datetime object which mimics the python datetime object, but
allows for dates that don't exist in the proleptic gregorian
calendar.
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<a href="netcdftime.netcdftime.utime-class.html" class="summary-name">utime</a><br />
Performs conversions of netCDF time coordinate data to/from
datetime objects.
</td>
</tr>
</table>
<!-- ==================== FUNCTIONS ==================== -->
<a name="section-Functions"></a>
<table class="summary" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
<td align="left" colspan="2" class="table-header">
<span class="table-header">Functions</span></td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><span class="summary-sig"><a href="netcdftime.netcdftime-module.html#DateFromJulianDay" class="summary-sig-name">DateFromJulianDay</a>(<span class="summary-sig-arg">JD</span>,
<span class="summary-sig-arg">calendar</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">standard</code><code class="variable-quote">'</code></span>)</span><br />
returns a 'datetime-like' object given Julian Day.</td>
<td align="right" valign="top">
<span class="codelink"><a href="netcdftime.netcdftime-pysrc.html#DateFromJulianDay">source code</a></span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><span class="summary-sig"><a href="netcdftime.netcdftime-module.html#JulianDayFromDate" class="summary-sig-name">JulianDayFromDate</a>(<span class="summary-sig-arg">date</span>,
<span class="summary-sig-arg">calendar</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">standard</code><code class="variable-quote">'</code></span>)</span><br />
creates a Julian Day from a 'datetime-like' object.</td>
<td align="right" valign="top">
<span class="codelink"><a href="netcdftime.netcdftime-pysrc.html#JulianDayFromDate">source code</a></span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><span class="summary-sig"><a href="netcdftime.netcdftime-module.html#date2index" class="summary-sig-name">date2index</a>(<span class="summary-sig-arg">dates</span>,
<span class="summary-sig-arg">nctime</span>,
<span class="summary-sig-arg">calendar</span>=<span class="summary-sig-default">None</span>,
<span class="summary-sig-arg">select</span>=<span class="summary-sig-default">'exact'</span>)</span><br />
Return indices of a netCDF time variable corresponding to the given
dates.</td>
<td align="right" valign="top">
<span class="codelink"><a href="netcdftime.netcdftime-pysrc.html#date2index">source code</a></span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><span class="summary-sig"><a href="netcdftime.netcdftime-module.html#date2num" class="summary-sig-name">date2num</a>(<span class="summary-sig-arg">dates</span>,
<span class="summary-sig-arg">units</span>,
<span class="summary-sig-arg">calendar</span>=<span class="summary-sig-default">'standard'</span>)</span><br />
Return numeric time values given datetime objects.</td>
<td align="right" valign="top">
<span class="codelink"><a href="netcdftime.netcdftime-pysrc.html#date2num">source code</a></span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><span class="summary-sig"><a href="netcdftime.netcdftime-module.html#num2date" class="summary-sig-name">num2date</a>(<span class="summary-sig-arg">times</span>,
<span class="summary-sig-arg">units</span>,
<span class="summary-sig-arg">calendar</span>=<span class="summary-sig-default">'standard'</span>)</span><br />
Return datetime objects given numeric time values.</td>
<td align="right" valign="top">
<span class="codelink"><a href="netcdftime.netcdftime-pysrc.html#num2date">source code</a></span>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- ==================== VARIABLES ==================== -->
<a name="section-Variables"></a>
<table class="summary" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
<td align="left" colspan="2" class="table-header">
<span class="table-header">Variables</span></td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<a href="netcdftime.netcdftime-module.html#ISO8601_REGEX" class="summary-name">ISO8601_REGEX</a> = <code title="re.compile(r'(?P<year>[0-9]{4})(-(?P<month>[0-9]{1,2})(-(?P<day>[0-9]{\
1,2})((?P<separator>.)(?P<hour>[0-9]{2}):(?P<minute>[0-9]{2})(:(?P<sec\
ond>[0-9]{2})(\.(?P<fraction>[0-9]+))?)?(?P<timezone>Z|(([-\+])([0-9]{\
2}):([0-9]{2})))?)?)?)?')">re.compile(r'<code class="re-group">(?P<</code><code class="re-ref">year</code><code class="re-group">></code><code class="re-group">[</code>0<code class="re-op">-</code>9<code class="re-group">]</code><code class="re-op">{4}</code><code class="re-group">)</code><code class="re-group">(</code>-<code class="re-group">(?P<</code><code class="re-ref">month</code><code class="re-group">></code><code class="re-group">[</code>0<code class="re-op">-</code><code class="variable-ellipsis">...</code></code>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<a href="netcdftime.netcdftime-module.html#TIMEZONE_REGEX" class="summary-name">TIMEZONE_REGEX</a> = <code title="re.compile(r'(?P<prefix>[\+-])(?P<hours>[0-9]{2}).(?P<minutes>[0-9]{2}\
)')">re.compile(r'<code class="re-group">(?P<</code><code class="re-ref">prefix</code><code class="re-group">></code><code class="re-group">[</code>\+-<code class="re-group">]</code><code class="re-group">)</code><code class="re-group">(?P<</code><code class="re-ref">hours</code><code class="re-group">></code><code class="re-group">[</code>0<code class="re-op">-</code>9<code class="re-group">]</code><code class="variable-ellipsis">...</code></code>
</td>
</tr>
<tr>
<td width="15%" align="right" valign="top" class="summary">
<span class="summary-type"> </span>
</td><td class="summary">
<a name="__package__"></a><span class="summary-name">__package__</span> = <code title="'netcdftime'"><code class="variable-quote">'</code><code class="variable-string">netcdftime</code><code class="variable-quote">'</code></code>
</td>
</tr>
</table>
<!-- ==================== FUNCTION DETAILS ==================== -->
<a name="section-FunctionDetails"></a>
<table class="details" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
<td align="left" colspan="2" class="table-header">
<span class="table-header">Function Details</span></td>
</tr>
</table>
<a name="DateFromJulianDay"></a>
<div>
<table class="details" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr><td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top"><td>
<h3 class="epydoc"><span class="sig"><span class="sig-name">DateFromJulianDay</span>(<span class="sig-arg">JD</span>,
<span class="sig-arg">calendar</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">standard</code><code class="variable-quote">'</code></span>)</span>
</h3>
</td><td align="right" valign="top"
><span class="codelink"><a href="netcdftime.netcdftime-pysrc.html#DateFromJulianDay">source code</a></span>
</td>
</tr></table>
<p>returns a 'datetime-like' object given Julian Day. Julian Day is a
fractional day with a resolution of 1 second.</p>
<p>if calendar='standard' or 'gregorian' (default), Julian day follows
Julian Calendar on and before 1582-10-5, Gregorian calendar after
1582-10-15.</p>
<p>if calendar='proleptic_gregorian', Julian Day follows gregorian
calendar.</p>
<p>if calendar='julian', Julian Day follows julian calendar.</p>
<p>The datetime object is a 'real' datetime object if the date falls in
the Gregorian calendar (i.e. calendar='proleptic_gregorian', or calendar
= 'standard'/'gregorian' and the date is after 1582-10-15). Otherwise,
it's a 'phony' datetime object which is actually an instance of
netcdftime.datetime.</p>
<p>Algorithm:</p>
<p>Meeus, Jean (1998) Astronomical Algorithms (2nd Edition).
Willmann-Bell, Virginia. p. 63</p>
<dl class="fields">
</dl>
</td></tr></table>
</div>
<a name="JulianDayFromDate"></a>
<div>
<table class="details" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr><td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top"><td>
<h3 class="epydoc"><span class="sig"><span class="sig-name">JulianDayFromDate</span>(<span class="sig-arg">date</span>,
<span class="sig-arg">calendar</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">standard</code><code class="variable-quote">'</code></span>)</span>
</h3>
</td><td align="right" valign="top"
><span class="codelink"><a href="netcdftime.netcdftime-pysrc.html#JulianDayFromDate">source code</a></span>
</td>
</tr></table>
<p>creates a Julian Day from a 'datetime-like' object. Returns the
fractional Julian Day (resolution 1 second).</p>
<p>if calendar='standard' or 'gregorian' (default), Julian day follows
Julian Calendar on and before 1582-10-5, Gregorian calendar after
1582-10-15.</p>
<p>if calendar='proleptic_gregorian', Julian Day follows gregorian
calendar.</p>
<p>if calendar='julian', Julian Day follows julian calendar.</p>
<p>Algorithm:</p>
<p>Meeus, Jean (1998) Astronomical Algorithms (2nd Edition).
Willmann-Bell, Virginia. p. 63</p>
<dl class="fields">
</dl>
</td></tr></table>
</div>
<a name="date2index"></a>
<div>
<table class="details" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr><td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top"><td>
<h3 class="epydoc"><span class="sig"><span class="sig-name">date2index</span>(<span class="sig-arg">dates</span>,
<span class="sig-arg">nctime</span>,
<span class="sig-arg">calendar</span>=<span class="sig-default">None</span>,
<span class="sig-arg">select</span>=<span class="sig-default">'exact'</span>)</span>
</h3>
</td><td align="right" valign="top"
><span class="codelink"><a href="netcdftime.netcdftime-pysrc.html#date2index">source code</a></span>
</td>
</tr></table>
<p>Return indices of a netCDF time variable corresponding to the given
dates.</p>
<dl class="fields">
<dt>Parameters:</dt>
<dd><ul class="nomargin-top">
<li><strong class="pname"><code>dates</code></strong> - A datetime object or a sequence of datetime objects. The datetime
objects should not include a time-zone offset.</li>
<li><strong class="pname"><code>nctime</code></strong> - A netCDF time variable object. The nctime object must have a
<code>units</code> attribute. The entries are assumed to be
stored in increasing order.</li>
<li><strong class="pname"><code>calendar</code></strong> - Describes the calendar used in the time calculation. Valid
calendars <code>'standard', 'gregorian', 'proleptic_gregorian'
'noleap', '365_day', '360_day', 'julian', 'all_leap',
'366_day'</code>. Default is <code>'standard'</code>, which is a
mixed Julian/Gregorian calendar If <code>calendar</code> is None,
its value is given by <code>nctime.calendar</code> or
<code>standard</code> if no such attribute exists.</li>
<li><strong class="pname"><code>select</code></strong> - <code>'exact', 'before', 'after', 'nearest'</code> The index
selection method. <code>exact</code> will return the indices
perfectly matching the dates given. <code>before</code> and
<code>after</code> will return the indices corresponding to the
dates just before or just after the given dates if an exact match
cannot be found. <code>nearest</code> will return the indices
that correpond to the closest dates.</li>
</ul></dd>
</dl>
</td></tr></table>
</div>
<a name="date2num"></a>
<div>
<table class="details" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr><td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top"><td>
<h3 class="epydoc"><span class="sig"><span class="sig-name">date2num</span>(<span class="sig-arg">dates</span>,
<span class="sig-arg">units</span>,
<span class="sig-arg">calendar</span>=<span class="sig-default">'standard'</span>)</span>
</h3>
</td><td align="right" valign="top"
><span class="codelink"><a href="netcdftime.netcdftime-pysrc.html#date2num">source code</a></span>
</td>
</tr></table>
<p>Return numeric time values given datetime objects. The units of the
numeric time values are described by the <code class="link">units</code>
argument and the <code class="link">calendar</code> keyword. The datetime
objects must be in UTC with no time-zone offset. If there is a time-zone
offset in <code>units</code>, it will be applied to the returned numeric
values.</p>
<p>Like the matplotlib <code>date2num</code> function, except that it
allows for different units and calendars. Behaves the same if
<code>units = 'days since 0001-01-01 00:00:00'</code> and <code>calendar
= 'proleptic_gregorian'</code>.</p>
<dl class="fields">
<dt>Parameters:</dt>
<dd><ul class="nomargin-top">
<li><strong class="pname"><code>dates</code></strong> - A datetime object or a sequence of datetime objects. The datetime
objects should not include a time-zone offset.</li>
<li><strong class="pname"><code>units</code></strong> - a string of the form <code>'<b>time units</b> since <b>reference
time</b></code>' describing the time units. <b><code>time
units</code></b> can be days, hours, minutes or seconds.
<b><code>reference time</code></b> is the time origin. A valid
choice would be units=<code>'hours since 1800-01-01 00:00:00
-6:00'</code>.</li>
<li><strong class="pname"><code>calendar</code></strong> - describes the calendar used in the time calculations. All the
values currently defined in the <a
href="http://cf-pcmdi.llnl.gov/documents/cf-conventions/"
target="_top">CF metadata convention</a> are supported. Valid
calendars <code>'standard', 'gregorian', 'proleptic_gregorian'
'noleap', '365_day', '360_day', 'julian', 'all_leap',
'366_day'</code>. Default is <code>'standard'</code>, which is a
mixed Julian/Gregorian calendar.</li>
</ul></dd>
<dt>Returns:</dt>
<dd>a numeric time value, or an array of numeric time values.
<p>The maximum resolution of the numeric time values is 1
second.</p></dd>
</dl>
</td></tr></table>
</div>
<a name="num2date"></a>
<div>
<table class="details" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr><td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top"><td>
<h3 class="epydoc"><span class="sig"><span class="sig-name">num2date</span>(<span class="sig-arg">times</span>,
<span class="sig-arg">units</span>,
<span class="sig-arg">calendar</span>=<span class="sig-default">'standard'</span>)</span>
</h3>
</td><td align="right" valign="top"
><span class="codelink"><a href="netcdftime.netcdftime-pysrc.html#num2date">source code</a></span>
</td>
</tr></table>
<p>Return datetime objects given numeric time values. The units of the
numeric time values are described by the <code>units</code> argument and
the <code>calendar</code> keyword. The returned datetime objects
represent UTC with no time-zone offset, even if the specified
<code>units</code> contain a time-zone offset.</p>
<p>Like the matplotlib <code>num2date</code> function, except that it
allows for different units and calendars. Behaves the same if
<code>units = 'days since 001-01-01 00:00:00'</code> and <code>calendar =
'proleptic_gregorian'</code>.</p>
<dl class="fields">
<dt>Parameters:</dt>
<dd><ul class="nomargin-top">
<li><strong class="pname"><code>times</code></strong> - numeric time values. Maximum resolution is 1 second.</li>
<li><strong class="pname"><code>units</code></strong> - a string of the form <code>'<b>time units</b> since <b>reference
time</b></code>' describing the time units. <b><code>time
units</code></b> can be days, hours, minutes or seconds.
<b><code>reference time</code></b> is the time origin. A valid
choice would be units=<code>'hours since 1800-01-01 00:00:00
-6:00'</code>.</li>
<li><strong class="pname"><code>calendar</code></strong> - describes the calendar used in the time calculations. All the
values currently defined in the <a
href="http://cf-pcmdi.llnl.gov/documents/cf-conventions/"
target="_top">CF metadata convention</a> are supported. Valid
calendars <code>'standard', 'gregorian', 'proleptic_gregorian'
'noleap', '365_day', '360_day', 'julian', 'all_leap',
'366_day'</code>. Default is <code>'standard'</code>, which is a
mixed Julian/Gregorian calendar.</li>
</ul></dd>
<dt>Returns:</dt>
<dd>a datetime instance, or an array of datetime instances.
<p>The datetime instances returned are 'real' python datetime
objects if the date falls in the Gregorian calendar (i.e.
<code>calendar='proleptic_gregorian'</code>, or <code>calendar =
'standard'</code> or <code>'gregorian'</code> and the date is
after 1582-10-15). Otherwise, they are 'phony' datetime objects
which support some but not all the methods of 'real' python
datetime objects. This is because the python datetime module
cannot the uses the <code>'proleptic_gregorian'</code> calendar,
even before the switch occured from the Julian calendar in 1582.
The datetime instances do not contain a time-zone offset, even if
the specified <code>units</code> contains one.</p></dd>
</dl>
</td></tr></table>
</div>
<br />
<!-- ==================== VARIABLES DETAILS ==================== -->
<a name="section-VariablesDetails"></a>
<table class="details" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
<td align="left" colspan="2" class="table-header">
<span class="table-header">Variables Details</span></td>
</tr>
</table>
<a name="ISO8601_REGEX"></a>
<div>
<table class="details" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr><td>
<h3 class="epydoc">ISO8601_REGEX</h3>
<dl class="fields">
</dl>
<dl class="fields">
<dt>Value:</dt>
<dd><table><tr><td><pre class="variable">
re.compile(r'<code class="re-group">(?P<</code><code class="re-ref">year</code><code class="re-group">></code><code class="re-group">[</code>0<code class="re-op">-</code>9<code class="re-group">]</code><code class="re-op">{4}</code><code class="re-group">)</code><code class="re-group">(</code>-<code class="re-group">(?P<</code><code class="re-ref">month</code><code class="re-group">></code><code class="re-group">[</code>0<code class="re-op">-</code>9<code class="re-group">]</code><code class="re-op">{1,2}</code><code class="re-group">)</code><code class="re-group">(</code>-<code class="re-group">(?P<</code><code class="re-ref">day</code><code class="re-group">></code><code class="re-group">[</code>0<code class="re-op">-</code>9<code class="re-group">]</code><code class="re-op">{</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
<code class="re-op">1,2}</code><code class="re-group">)</code><code class="re-group">(</code><code class="re-group">(?P<</code><code class="re-ref">separator</code><code class="re-group">></code>.<code class="re-group">)</code><code class="re-group">(?P<</code><code class="re-ref">hour</code><code class="re-group">></code><code class="re-group">[</code>0<code class="re-op">-</code>9<code class="re-group">]</code><code class="re-op">{2}</code><code class="re-group">)</code>:<code class="re-group">(?P<</code><code class="re-ref">minute</code><code class="re-group">></code><code class="re-group">[</code>0<code class="re-op">-</code>9<code class="re-group">]</code><code class="re-op">{2}</code><code class="re-group">)</code><code class="re-group">(</code>:<code class="re-group">(?P<</code><code class="re-ref">sec</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
<code class="re-ref">ond</code><code class="re-group">></code><code class="re-group">[</code>0<code class="re-op">-</code>9<code class="re-group">]</code><code class="re-op">{2}</code><code class="re-group">)</code><code class="re-group">(</code>\.<code class="re-group">(?P<</code><code class="re-ref">fraction</code><code class="re-group">></code><code class="re-group">[</code>0<code class="re-op">-</code>9<code class="re-group">]</code><code class="re-op">+</code><code class="re-group">)</code><code class="re-group">)</code><code class="re-op">?</code><code class="re-group">)</code><code class="re-op">?</code><code class="re-group">(?P<</code><code class="re-ref">timezone</code><code class="re-group">></code>Z<code class="re-op">|</code><code class="re-group">(</code><code class="re-group">(</code><code class="re-group">[</code>-\+<code class="re-group">]</code><code class="re-group">)</code><code class="re-group">(</code><code class="re-group">[</code>0<code class="re-op">-</code>9<code class="re-group">]</code><code class="re-op">{</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
<code class="re-op">2}</code><code class="re-group">)</code>:<code class="re-group">(</code><code class="re-group">[</code>0<code class="re-op">-</code>9<code class="re-group">]</code><code class="re-op">{2}</code><code class="re-group">)</code><code class="re-group">)</code><code class="re-group">)</code><code class="re-op">?</code><code class="re-group">)</code><code class="re-op">?</code><code class="re-group">)</code><code class="re-op">?</code><code class="re-group">)</code><code class="re-op">?</code>')
</pre></td></tr></table>
</dd>
</dl>
</td></tr></table>
</div>
<a name="TIMEZONE_REGEX"></a>
<div>
<table class="details" border="1" cellpadding="3"
cellspacing="0" width="100%" bgcolor="white">
<tr><td>
<h3 class="epydoc">TIMEZONE_REGEX</h3>
<dl class="fields">
</dl>
<dl class="fields">
<dt>Value:</dt>
<dd><table><tr><td><pre class="variable">
re.compile(r'<code class="re-group">(?P<</code><code class="re-ref">prefix</code><code class="re-group">></code><code class="re-group">[</code>\+-<code class="re-group">]</code><code class="re-group">)</code><code class="re-group">(?P<</code><code class="re-ref">hours</code><code class="re-group">></code><code class="re-group">[</code>0<code class="re-op">-</code>9<code class="re-group">]</code><code class="re-op">{2}</code><code class="re-group">)</code>.<code class="re-group">(?P<</code><code class="re-ref">minutes</code><code class="re-group">></code><code class="re-group">[</code>0<code class="re-op">-</code>9<code class="re-group">]</code><code class="re-op">{2}</code><code class="re-group"></code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
<code class="re-group">)</code>')
</pre></td></tr></table>
</dd>
</dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
bgcolor="#a0c0ff" cellspacing="0">
<tr valign="middle">
<!-- Tree link -->
<th> <a
href="module-tree.html">Trees</a> </th>
<!-- Index link -->
<th> <a
href="identifier-index.html">Indices</a> </th>
<!-- Help link -->
<th> <a
href="help.html">Help</a> </th>
<th class="navbar" width="100%"></th>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
<tr>
<td align="left" class="footer">
Generated by Epydoc 3.0.1 on Thu Jul 8 10:58:35 2010
</td>
<td align="right" class="footer">
<a target="mainFrame" href="http://epydoc.sourceforge.net"
>http://epydoc.sourceforge.net</a>
</td>
</tr>
</table>
<script type="text/javascript">
<!--
// Private objects are initially displayed (because if
// javascript is turned off then we want them to be
// visible); but by default, we want to hide them. So hide
// them unless we have a cookie that says to show them.
checkCookie();
// -->
</script>
</body>
</html>