This file is indexed.

/usr/share/doc/python-simpleparse-doc/doc/pydoc/simpleparse.common.iso_date.html is in python-simpleparse-doc 2.1.0a1-6.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module simpleparse.common.iso_date</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="simpleparse.html"><font color="#ffffff">simpleparse</font></a>.<a href="simpleparse.common.html"><font color="#ffffff">common</font></a>.iso_date</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/mcfletch/pylive/simpleparse/common/iso_date.py">/home/mcfletch/pylive/simpleparse/common/iso_date.py</a></font></td></tr></table>
    <p><tt>Canonical&nbsp;ISO&nbsp;date&nbsp;format&nbsp;YYYY-MM-DDTHH:mm:SS+HH:mm<br>
&nbsp;<br>
This&nbsp;parser&nbsp;is&nbsp;_extremely_&nbsp;strict,&nbsp;and&nbsp;the&nbsp;dates&nbsp;that&nbsp;match&nbsp;it,<br>
though&nbsp;really&nbsp;easy&nbsp;to&nbsp;work&nbsp;with&nbsp;for&nbsp;the&nbsp;computer,&nbsp;are&nbsp;not&nbsp;particularly<br>
readable.&nbsp;&nbsp;See&nbsp;the&nbsp;iso_date_loose&nbsp;module&nbsp;for&nbsp;a&nbsp;slightly&nbsp;relaxed<br>
definition&nbsp;which&nbsp;allows&nbsp;the&nbsp;"T"&nbsp;character&nbsp;to&nbsp;be&nbsp;replaced&nbsp;by&nbsp;a<br>
"&nbsp;"&nbsp;character,&nbsp;and&nbsp;allows&nbsp;a&nbsp;space&nbsp;before&nbsp;the&nbsp;timezone&nbsp;offset,&nbsp;as&nbsp;well<br>
as&nbsp;allowing&nbsp;the&nbsp;integer&nbsp;values&nbsp;to&nbsp;use&nbsp;non-0-padded&nbsp;integers.<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ISO_date&nbsp;--&nbsp;YYYY-MM-DD&nbsp;format,&nbsp;with&nbsp;a&nbsp;month&nbsp;and&nbsp;date&nbsp;optional<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ISO_time&nbsp;--&nbsp;HH:mm:SS&nbsp;format,&nbsp;with&nbsp;minutes&nbsp;and&nbsp;seconds&nbsp;optional<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ISO_date_time&nbsp;--&nbsp;YYYY-MM-DD&nbsp;HH:mm:SS+HH:mm&nbsp;format,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;with&nbsp;time&nbsp;optional&nbsp;and&nbsp;TimeZone&nbsp;offset&nbsp;optional<br>
&nbsp;<br>
Interpreter:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#MxInterpreter">MxInterpreter</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interprets&nbsp;the&nbsp;parse&nbsp;tree&nbsp;as&nbsp;mx.DateTime&nbsp;values<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ISO_date&nbsp;and&nbsp;ISO_time<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;returns&nbsp;DateTime&nbsp;objects<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Time&nbsp;only<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;returns&nbsp;RelativeDateTime&nbsp;object&nbsp;which,&nbsp;when<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;added&nbsp;to&nbsp;a&nbsp;DateTime&nbsp;gives&nbsp;you&nbsp;the&nbsp;given&nbsp;time<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;within&nbsp;that&nbsp;day</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="mx.DateTime.html">mx.DateTime</a><br>
<a href="simpleparse.common.chartypes.html">simpleparse.common.chartypes</a><br>
</td><td width="25%" valign=top><a href="simpleparse.common.html">simpleparse.common</a><br>
<a href="simpleparse.common.numbers.html">simpleparse.common.numbers</a><br>
</td><td width="25%" valign=top><a href="simpleparse.objectgenerator.html">simpleparse.objectgenerator</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="simpleparse.dispatchprocessor.html#DispatchProcessor">DispatchProcessor</a>(<a href="simpleparse.processor.html#Processor">Processor</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="simpleparse.common.iso_date.html#MxInterpreter">MxInterpreter</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="MxInterpreter">class <strong>MxInterpreter</strong></a>(<a href="simpleparse.dispatchprocessor.html#DispatchProcessor">DispatchProcessor</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Interpret&nbsp;a&nbsp;parsed&nbsp;ISO_date_time_loose&nbsp;in&nbsp;GMT/UTC&nbsp;time&nbsp;or&nbsp;localtime<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="simpleparse.common.iso_date.html#MxInterpreter">MxInterpreter</a></dd>
<dd><a href="simpleparse.dispatchprocessor.html#DispatchProcessor">DispatchProcessor</a></dd>
<dd><a href="simpleparse.processor.html#Processor">Processor</a></dd>
<dd><a href="simpleparse.processor.html#MethodSource">MethodSource</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="MxInterpreter-ISO_date"><strong>ISO_date</strong></a>(self, (tag, left, right, sublist), buffer)</dt><dd><tt>Interpret&nbsp;the&nbsp;ISO&nbsp;date&nbsp;format</tt></dd></dl>

<dl><dt><a name="MxInterpreter-ISO_date_time"><strong>ISO_date_time</strong></a>(self, (tag, left, right, sublist), buffer)</dt><dd><tt>Interpret&nbsp;the&nbsp;loose&nbsp;ISO&nbsp;date&nbsp;+&nbsp;time&nbsp;format</tt></dd></dl>

<dl><dt><a name="MxInterpreter-ISO_time"><strong>ISO_time</strong></a>(self, (tag, left, right, sublist), buffer)</dt><dd><tt>Interpret&nbsp;the&nbsp;ISO&nbsp;time&nbsp;format</tt></dd></dl>

<dl><dt><a name="MxInterpreter-__init__"><strong>__init__</strong></a>(self, inputLocal<font color="#909090">=1</font>, returnLocal<font color="#909090">=1</font>)</dt></dl>

<dl><dt><a name="MxInterpreter-offset"><strong>offset</strong></a>(self, (tag, left, right, sublist), buffer)</dt><dd><tt>Calculate&nbsp;the&nbsp;time&nbsp;zone&nbsp;offset&nbsp;as&nbsp;a&nbsp;date-time&nbsp;delta</tt></dd></dl>

<dl><dt><a name="MxInterpreter-offset_sign"><strong>offset_sign</strong></a>(self, (tag, left, right, sublist), buffer)</dt><dd><tt>Interpret&nbsp;the&nbsp;offset&nbsp;sign&nbsp;as&nbsp;a&nbsp;multiplier</tt></dd></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>dateName</strong> = 'ISO_date'</dl>

<dl><dt><strong>day</strong> = &lt;IntInterpreter object @ 46912541558904&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<dl><dt><strong>hour</strong> = &lt;IntInterpreter object @ 46912541558904&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<dl><dt><strong>integer</strong> = &lt;IntInterpreter object @ 46912541558904&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<dl><dt><strong>minute</strong> = &lt;IntInterpreter object @ 46912541558904&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<dl><dt><strong>month</strong> = &lt;IntInterpreter object @ 46912541558904&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<dl><dt><strong>offset_hour</strong> = &lt;IntInterpreter object @ 46912541558904&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<dl><dt><strong>offset_minute</strong> = &lt;IntInterpreter object @ 46912541558904&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<dl><dt><strong>second</strong> = &lt;IntInterpreter object @ 46912541558904&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<dl><dt><strong>timeName</strong> = 'ISO_time'</dl>

<dl><dt><strong>year</strong> = &lt;IntInterpreter object @ 46912541558904&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<hr>
Methods inherited from <a href="simpleparse.dispatchprocessor.html#DispatchProcessor">DispatchProcessor</a>:<br>
<dl><dt><a name="MxInterpreter-__call__"><strong>__call__</strong></a>(self, value, buffer)</dt><dd><tt>Process&nbsp;the&nbsp;results&nbsp;of&nbsp;the&nbsp;parsing&nbsp;run&nbsp;over&nbsp;buffer<br>
&nbsp;<br>
Value&nbsp;can&nbsp;either&nbsp;be:&nbsp;(success,&nbsp;tags,&nbsp;next)&nbsp;for&nbsp;a&nbsp;top-level<br>
production,&nbsp;or&nbsp;(tag,&nbsp;left,&nbsp;right,&nbsp;children)&nbsp;for&nbsp;a&nbsp;non-top<br>
production.</tt></dd></dl>

<hr>
Methods inherited from <a href="simpleparse.processor.html#Processor">Processor</a>:<br>
<dl><dt><a name="MxInterpreter-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;representation&nbsp;of&nbsp;the&nbsp;class</tt></dd></dl>

</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>_p</strong> = &lt;simpleparse.parser.Parser instance&gt;<br>
<strong>c</strong> = {'ISO_date': LibraryElement(
    production = 'ISO_date',
   ...enerator.Generator instance at 0x2aaaad5dca28&gt;,
), 'ISO_date_time': LibraryElement(
    production = 'ISO_date_time'...enerator.Generator instance at 0x2aaaad5dca28&gt;,
), 'ISO_time': LibraryElement(
    production = 'ISO_time',
   ...enerator.Generator instance at 0x2aaaad5dca28&gt;,
)}<br>
<strong>declaration</strong> = '<font color="#c040c0">\n</font>year      := digit,digit,digit,digit<font color="#c040c0">\n</font>month     ...ate_time  := ISO_date, ([T], ISO_time)?, offset?<font color="#c040c0">\n</font>'<br>
<strong>haveMX</strong> = 1<br>
<strong>name</strong> = 'ISO_date_time'</td></tr></table>
</body></html>