File: kiwi.datatypes._BaseDateTimeConverter.html

package info (click to toggle)
kiwi 1.9.22-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 11,976 kB
  • ctags: 5,619
  • sloc: python: 15,767; ansic: 193; xml: 77; makefile: 53; sh: 18
file content (240 lines) | stat: -rw-r--r-- 9,484 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
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>API docs for &ldquo;kiwi.datatypes._BaseDateTimeConverter&rdquo;</title>
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
    <link href="apidocs.css" type="text/css" rel="stylesheet" />
    
    
  </head>
  <body>
    <h1 class="class">Class k.d._BaseDateTimeConverter(<a href="kiwi.datatypes.BaseConverter.html">BaseConverter</a>):</h1>
    <p>
      <span id="part">Part of <a href="kiwi.html">kiwi</a>.<a href="kiwi.datatypes.html">datatypes</a></span>
      
      <a href="classIndex.html#kiwi.datatypes._BaseDateTimeConverter">View In Hierarchy</a>
    </p>
    <div>
      <p>Known subclasses: <a href="kiwi.datatypes._DateConverter.html">kiwi.datatypes._DateConverter</a>, <a href="kiwi.datatypes._DateTimeConverter.html">kiwi.datatypes._DateTimeConverter</a>, <a href="kiwi.datatypes._TimeConverter.html">kiwi.datatypes._TimeConverter</a></p>
    </div>
    <div>Abstract class for converting datatime objects to and from strings
<table class="fieldTable"><tr class="fieldStart"><td class="fieldName">Class Variables</td><td class="fieldArg">date_format</td><td></td></tr><tr><td></td><td class="fieldArg">lang_constant</td><td></td></tr></table></div>
    
    
    <div id="splitTables">
      <table class="children sortable" id="id344">
  
  
  
  
  <tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes._BaseDateTimeConverter.html#__init__">__init__</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes._BaseDateTimeConverter.html#get_lang_constant_win32">get_lang_constant_win32</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes._BaseDateTimeConverter.html#get_lang_constant">get_lang_constant</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes._BaseDateTimeConverter.html#from_dateinfo">from_dateinfo</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes._BaseDateTimeConverter.html#get_compare_function">get_compare_function</a></td>
    <td><span>This can be overriden by a subclass to provide a custom comparison
</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes._BaseDateTimeConverter.html#get_format">get_format</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes._BaseDateTimeConverter.html#get_mask">get_mask</a></td>
    <td><span>Returns the mask of the entry or None if not specified.
</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes._BaseDateTimeConverter.html#as_string">as_string</a></td>
    <td><span>Convert a date to a string
</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes._BaseDateTimeConverter.html#_convert_format">_convert_format</a></td>
    <td><span>Convert the format string to a 'human-readable' format
</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="kiwi.datatypes._BaseDateTimeConverter.html#from_string">from_string</a></td>
    <td><span>Convert a string to a date
</span></td>
  </tr>
  
</table>
      
      
    </div>
    
    
    
    <div class="function">
        <a name="kiwi.datatypes._BaseDateTimeConverter.__init__"></a>
        <a name="__init__"></a>
        <div class="functionHeader">
        
        def __init__(self):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes._BaseDateTimeConverter.get_lang_constant_win32"></a>
        <a name="get_lang_constant_win32"></a>
        <div class="functionHeader">
        
        def get_lang_constant_win32(self):
        
      </div>
        <div class="functionBody">
          <div class="interfaceinfo">overridden in <a href="kiwi.datatypes._DateConverter.html">kiwi.datatypes._DateConverter</a>, <a href="kiwi.datatypes._DateTimeConverter.html">kiwi.datatypes._DateTimeConverter</a>, <a href="kiwi.datatypes._TimeConverter.html">kiwi.datatypes._TimeConverter</a></div>
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes._BaseDateTimeConverter.get_lang_constant"></a>
        <a name="get_lang_constant"></a>
        <div class="functionHeader">
        
        def get_lang_constant(self):
        
      </div>
        <div class="functionBody">
          <div class="interfaceinfo">overridden in <a href="kiwi.datatypes._DateConverter.html">kiwi.datatypes._DateConverter</a>, <a href="kiwi.datatypes._DateTimeConverter.html">kiwi.datatypes._DateTimeConverter</a>, <a href="kiwi.datatypes._TimeConverter.html">kiwi.datatypes._TimeConverter</a></div>
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes._BaseDateTimeConverter.from_dateinfo"></a>
        <a name="from_dateinfo"></a>
        <div class="functionHeader">
        
        def from_dateinfo(self, dateinfo):
        
      </div>
        <div class="functionBody">
          <div class="interfaceinfo">overridden in <a href="kiwi.datatypes._DateConverter.html">kiwi.datatypes._DateConverter</a>, <a href="kiwi.datatypes._DateTimeConverter.html">kiwi.datatypes._DateTimeConverter</a>, <a href="kiwi.datatypes._TimeConverter.html">kiwi.datatypes._TimeConverter</a></div>
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes._BaseDateTimeConverter.get_compare_function"></a>
        <a name="get_compare_function"></a>
        <div class="functionHeader">
        
        def get_compare_function(self):
        
      </div>
        <div class="functionBody">
          <div class="interfaceinfo">overrides <a href="kiwi.datatypes.BaseConverter.html#get_compare_function">kiwi.datatypes.BaseConverter.get_compare_function</a></div>
          <div>This can be overriden by a subclass to provide a custom comparison 
function.
<table class="fieldTable"><tr class="fieldStart"><td class="fieldName">Returns</td><td colspan="2">cmp
</td></tr></table></div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes._BaseDateTimeConverter.get_format"></a>
        <a name="get_format"></a>
        <div class="functionHeader">
        
        def get_format(self):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes._BaseDateTimeConverter.get_mask"></a>
        <a name="get_mask"></a>
        <div class="functionHeader">
        
        def get_mask(self):
        
      </div>
        <div class="functionBody">
          <div class="interfaceinfo">overrides <a href="kiwi.datatypes.BaseConverter.html#get_mask">kiwi.datatypes.BaseConverter.get_mask</a></div>
          <div>Returns the mask of the entry or None if not specified.
<table class="fieldTable"><tr class="fieldStart"><td class="fieldName">Returns</td><td colspan="2">the mask or None.
</td></tr></table></div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes._BaseDateTimeConverter.as_string"></a>
        <a name="as_string"></a>
        <div class="functionHeader">
        
        def as_string(self, value, format=None):
        
      </div>
        <div class="functionBody">
          <div class="interfaceinfo">overrides <a href="kiwi.datatypes.BaseConverter.html#as_string">kiwi.datatypes.BaseConverter.as_string</a></div>
          <div>Convert a date to a string
<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes._BaseDateTimeConverter._convert_format"></a>
        <a name="_convert_format"></a>
        <div class="functionHeader">
        
        def _convert_format(self, format):
        
      </div>
        <div class="functionBody">
          
          <div>Convert the format string to a 'human-readable' format
<table class="fieldTable"></table></div>
        </div>
      </div><div class="function">
        <a name="kiwi.datatypes._BaseDateTimeConverter.from_string"></a>
        <a name="from_string"></a>
        <div class="functionHeader">
        
        def from_string(self, value):
        
      </div>
        <div class="functionBody">
          <div class="interfaceinfo">overrides <a href="kiwi.datatypes.BaseConverter.html#from_string">kiwi.datatypes.BaseConverter.from_string</a></div>
          <div>Convert a string to a date
<table class="fieldTable"></table></div>
        </div>
      </div>
    
    <address>
      <a href="index.html">API Documentation</a> for Kiwi, generated by <a href="http://codespeak.net/~mwh/pydoctor/">pydoctor</a> at 2008-05-29 16:06:17.
    </address>
  </body>
</html>