This file is indexed.

/usr/share/gtk-doc/html/libedataserver/libedataserver-e-time-utils.html is in libedataserver1.2-dev 3.2.3-0ubuntu6.

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
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>e-time-utils</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Evolution-Data-Server Manual: Utilities (libedataserver)">
<link rel="up" href="ch01.html" title="Evolution-Data-Server Manual: Utilities (libedataserver)">
<link rel="prev" href="libedataserver-ESourceList.html" title="ESourceList">
<link rel="next" href="libedataserver-e-uid.html" title="e-uid">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libedataserver-ESourceList.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Evolution-Data-Server Manual: Utilities (libedataserver)</th>
<td><a accesskey="n" href="libedataserver-e-uid.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libedataserver-e-time-utils.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#libedataserver-e-time-utils.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="libedataserver-e-time-utils"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libedataserver-e-time-utils.top_of_page"></a>e-time-utils</span></h2>
<p>e-time-utils</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libedataserver-e-time-utils.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">enum                <a class="link" href="libedataserver-e-time-utils.html#ETimeParseStatus" title="enum ETimeParseStatus">ETimeParseStatus</a>;
<a class="link" href="libedataserver-e-time-utils.html#ETimeParseStatus" title="enum ETimeParseStatus"><span class="returnvalue">ETimeParseStatus</span></a>    <a class="link" href="libedataserver-e-time-utils.html#e-time-parse-date-and-time" title="e_time_parse_date_and_time ()">e_time_parse_date_and_time</a>          (<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>,
                                                         <em class="parameter"><code><span class="type">struct tm</span> *result</code></em>);
<a class="link" href="libedataserver-e-time-utils.html#ETimeParseStatus" title="enum ETimeParseStatus"><span class="returnvalue">ETimeParseStatus</span></a>    <a class="link" href="libedataserver-e-time-utils.html#e-time-parse-date" title="e_time_parse_date ()">e_time_parse_date</a>                   (<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>,
                                                         <em class="parameter"><code><span class="type">struct tm</span> *result</code></em>);
<a class="link" href="libedataserver-e-time-utils.html#ETimeParseStatus" title="enum ETimeParseStatus"><span class="returnvalue">ETimeParseStatus</span></a>    <a class="link" href="libedataserver-e-time-utils.html#e-time-parse-date-and-time-ex" title="e_time_parse_date_and_time_ex ()">e_time_parse_date_and_time_ex</a>       (<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>,
                                                         <em class="parameter"><code><span class="type">struct tm</span> *result</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> *two_digit_year</code></em>);
<a class="link" href="libedataserver-e-time-utils.html#ETimeParseStatus" title="enum ETimeParseStatus"><span class="returnvalue">ETimeParseStatus</span></a>    <a class="link" href="libedataserver-e-time-utils.html#e-time-parse-date-ex" title="e_time_parse_date_ex ()">e_time_parse_date_ex</a>                (<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>,
                                                         <em class="parameter"><code><span class="type">struct tm</span> *result</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> *two_digit_year</code></em>);
<a class="link" href="libedataserver-e-time-utils.html#ETimeParseStatus" title="enum ETimeParseStatus"><span class="returnvalue">ETimeParseStatus</span></a>    <a class="link" href="libedataserver-e-time-utils.html#e-time-parse-time" title="e_time_parse_time ()">e_time_parse_time</a>                   (<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>,
                                                         <em class="parameter"><code><span class="type">struct tm</span> *result</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libedataserver-e-time-utils.html#e-time-format-date-and-time" title="e_time_format_date_and_time ()">e_time_format_date_and_time</a>         (<em class="parameter"><code><span class="type">struct tm</span> *date_tm</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> use_24_hour_format</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> show_midnight</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> show_zero_seconds</code></em>,
                                                         <em class="parameter"><code><span class="type">gchar</span> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">gint</span> buffer_size</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libedataserver-e-time-utils.html#e-time-format-time" title="e_time_format_time ()">e_time_format_time</a>                  (<em class="parameter"><code><span class="type">struct tm</span> *date_tm</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> use_24_hour_format</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> show_zero_seconds</code></em>,
                                                         <em class="parameter"><code><span class="type">gchar</span> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">gint</span> buffer_size</code></em>);
<span class="returnvalue">time_t</span>              <a class="link" href="libedataserver-e-time-utils.html#e-mktime-utc" title="e_mktime_utc ()">e_mktime_utc</a>                        (<em class="parameter"><code><span class="type">struct tm</span> *tm</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libedataserver-e-time-utils.html#e-localtime-with-offset" title="e_localtime_with_offset ()">e_localtime_with_offset</a>             (<em class="parameter"><code><span class="type">time_t</span> tt</code></em>,
                                                         <em class="parameter"><code><span class="type">struct tm</span> *tm</code></em>,
                                                         <em class="parameter"><code><span class="type">gint</span> *offset</code></em>);
<span class="returnvalue">gchar</span> *             <a class="link" href="libedataserver-e-time-utils.html#e-time-get-d-fmt-with-4digit-year" title="e_time_get_d_fmt_with_4digit_year ()">e_time_get_d_fmt_with_4digit_year</a>   (<em class="parameter"><code><span class="type">void</span></code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libedataserver-e-time-utils.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1">
<a name="libedataserver-e-time-utils.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="ETimeParseStatus"></a><h3>enum ETimeParseStatus</h3>
<pre class="programlisting">typedef enum {
	E_TIME_PARSE_OK,
	E_TIME_PARSE_NONE,
	E_TIME_PARSE_INVALID
} ETimeParseStatus;
</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="E-TIME-PARSE-OK:CAPS"></a><span class="term"><code class="literal">E_TIME_PARSE_OK</code></span></p></td>
<td>The time string was parsed successfully.
</td>
</tr>
<tr>
<td><p><a name="E-TIME-PARSE-NONE:CAPS"></a><span class="term"><code class="literal">E_TIME_PARSE_NONE</code></span></p></td>
<td>The time string was empty.
</td>
</tr>
<tr>
<td><p><a name="E-TIME-PARSE-INVALID:CAPS"></a><span class="term"><code class="literal">E_TIME_PARSE_INVALID</code></span></p></td>
<td>The time string was not formatted correctly.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="e-time-parse-date-and-time"></a><h3>e_time_parse_date_and_time ()</h3>
<pre class="programlisting"><a class="link" href="libedataserver-e-time-utils.html#ETimeParseStatus" title="enum ETimeParseStatus"><span class="returnvalue">ETimeParseStatus</span></a>    e_time_parse_date_and_time          (<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>,
                                                         <em class="parameter"><code><span class="type">struct tm</span> *result</code></em>);</pre>
<p>
Parses a string <em class="parameter"><code>value</code></em> containing a date and a time and stores the
result in <em class="parameter"><code>result</code></em>. The date in <em class="parameter"><code>value</code></em> is expected to be in a format
like "Wed 3/13/00 14:20:00", though <code class="function">gettext()</code> is used to support the
appropriate local formats. There is also some leniency on the
format of the string, e.g. the weekday can be skipped or 12-hour
formats with am/pm can be used.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>the string to parse a date and time from</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
<td>a <a class="link" href="libedataserver-e-util.html#tm" title="struct tm"><span class="type">tm</span></a> to store the result in</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>E_TIME_PARSE_OK if the string was successfully parsed,
E_TIME_PARSE_NONE if the string was empty, or
E_TIME_PARSE_INVALID if the string could not be parsed.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="e-time-parse-date"></a><h3>e_time_parse_date ()</h3>
<pre class="programlisting"><a class="link" href="libedataserver-e-time-utils.html#ETimeParseStatus" title="enum ETimeParseStatus"><span class="returnvalue">ETimeParseStatus</span></a>    e_time_parse_date                   (<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>,
                                                         <em class="parameter"><code><span class="type">struct tm</span> *result</code></em>);</pre>
<p>
Takes in a date string entered by the user and tries to convert it to
a struct <a class="link" href="libedataserver-e-util.html#tm" title="struct tm"><span class="type">tm</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>A date string.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
<td>Return value for the parsed date.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>An <a class="link" href="libedataserver-e-time-utils.html#ETimeParseStatus" title="enum ETimeParseStatus"><span class="type">ETimeParseStatus</span></a> result code indicating whether
<em class="parameter"><code>value</code></em> was an empty string, a valid date, or an invalid date.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="e-time-parse-date-and-time-ex"></a><h3>e_time_parse_date_and_time_ex ()</h3>
<pre class="programlisting"><a class="link" href="libedataserver-e-time-utils.html#ETimeParseStatus" title="enum ETimeParseStatus"><span class="returnvalue">ETimeParseStatus</span></a>    e_time_parse_date_and_time_ex       (<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>,
                                                         <em class="parameter"><code><span class="type">struct tm</span> *result</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> *two_digit_year</code></em>);</pre>
<p>
Parses a string <em class="parameter"><code>value</code></em> containing a date and a time and stores the
result in <em class="parameter"><code>result</code></em>. The date in <em class="parameter"><code>value</code></em> is expected to be in a format
like "Wed 3/13/00 14:20:00", though <code class="function">gettext()</code> is used to support the
appropriate local formats. There is also some leniency on the
format of the string, e.g. the weekday can be skipped or 12-hour
formats with am/pm can be used.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The string to parse a date and time from.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
<td>A <a class="link" href="libedataserver-e-util.html#tm" title="struct tm"><span class="type">tm</span></a> to store the result in.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>two_digit_year</code></em> :</span></p></td>
<td>set to TRUE, is parsing with two-digit year, else FALSE,
but only when not NULL.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>E_TIME_PARSE_OK if the string was successfully parsed,
E_TIME_PARSE_NONE if the string was empty, or
E_TIME_PARSE_INVALID if the string could not be parsed.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.22</p>
</div>
<hr>
<div class="refsect2">
<a name="e-time-parse-date-ex"></a><h3>e_time_parse_date_ex ()</h3>
<pre class="programlisting"><a class="link" href="libedataserver-e-time-utils.html#ETimeParseStatus" title="enum ETimeParseStatus"><span class="returnvalue">ETimeParseStatus</span></a>    e_time_parse_date_ex                (<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>,
                                                         <em class="parameter"><code><span class="type">struct tm</span> *result</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> *two_digit_year</code></em>);</pre>
<p>
Takes in a date string entered by the user and tries to convert it to
a struct <a class="link" href="libedataserver-e-util.html#tm" title="struct tm"><span class="type">tm</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>A date string.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
<td>Return value for the parsed date.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>two_digit_year</code></em> :</span></p></td>
<td>set to TRUE, is parsing with two-digit year, else FALSE,
but only when not NULL.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>An <a class="link" href="libedataserver-e-time-utils.html#ETimeParseStatus" title="enum ETimeParseStatus"><span class="type">ETimeParseStatus</span></a> result code indicating whether
<em class="parameter"><code>value</code></em> was an empty string, a valid date, or an invalid date.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.22</p>
</div>
<hr>
<div class="refsect2">
<a name="e-time-parse-time"></a><h3>e_time_parse_time ()</h3>
<pre class="programlisting"><a class="link" href="libedataserver-e-time-utils.html#ETimeParseStatus" title="enum ETimeParseStatus"><span class="returnvalue">ETimeParseStatus</span></a>    e_time_parse_time                   (<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>,
                                                         <em class="parameter"><code><span class="type">struct tm</span> *result</code></em>);</pre>
<p>
Parses <em class="parameter"><code>value</code></em>, a string containing a time. <em class="parameter"><code>value</code></em> is expected to be
in a format like "14:20:00". <code class="function">gettext()</code> is used to
support the appropriate local formats and slightly
different formats, such as 12-hour formats with am/pm,
are accepted as well.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The string to parse a time from.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
<td>A <a class="link" href="libedataserver-e-util.html#tm" title="struct tm"><span class="type">tm</span></a> to store the result in.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>An <a class="link" href="libedataserver-e-time-utils.html#ETimeParseStatus" title="enum ETimeParseStatus"><span class="type">ETimeParseStatus</span></a> result code indicating whether
<em class="parameter"><code>value</code></em> was an empty string, a valid date, or an invalid date.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="e-time-format-date-and-time"></a><h3>e_time_format_date_and_time ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                e_time_format_date_and_time         (<em class="parameter"><code><span class="type">struct tm</span> *date_tm</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> use_24_hour_format</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> show_midnight</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> show_zero_seconds</code></em>,
                                                         <em class="parameter"><code><span class="type">gchar</span> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">gint</span> buffer_size</code></em>);</pre>
<p>
Creates a string representation of the time value <em class="parameter"><code>date_tm</code></em> and
stores it in <em class="parameter"><code>buffer</code></em>.  <em class="parameter"><code>buffer_size</code></em> should be at least 64 to be
safe. If <em class="parameter"><code>show_midnight</code></em> is <span class="type">FALSE</span>, and the time is midnight, then
only the date is stored in <em class="parameter"><code>buffer</code></em>. If <em class="parameter"><code>show_zero_seconds</code></em> is
<span class="type">FALSE</span>, then if the time has zero seconds only the hour and minute
of the time are stored in <em class="parameter"><code>buffer</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>date_tm</code></em> :</span></p></td>
<td>The <a class="link" href="libedataserver-e-util.html#tm" title="struct tm"><span class="type">tm</span></a> to convert to a string.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>use_24_hour_format</code></em> :</span></p></td>
<td>A <span class="type">gboolean</span>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>show_midnight</code></em> :</span></p></td>
<td>A <span class="type">gboolean</span>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>show_zero_seconds</code></em> :</span></p></td>
<td>A <span class="type">gboolean</span>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>A <span class="type">char</span> buffer to store the time string in.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer_size</code></em> :</span></p></td>
<td>The length of <em class="parameter"><code>buffer</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="e-time-format-time"></a><h3>e_time_format_time ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                e_time_format_time                  (<em class="parameter"><code><span class="type">struct tm</span> *date_tm</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> use_24_hour_format</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> show_zero_seconds</code></em>,
                                                         <em class="parameter"><code><span class="type">gchar</span> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">gint</span> buffer_size</code></em>);</pre>
<p>
Creates a string representation of a time value in <em class="parameter"><code>date_tm</code></em> and
stores it in <em class="parameter"><code>buffer</code></em>. <em class="parameter"><code>buffer_size</code></em> should be at least 64.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>date_tm</code></em> :</span></p></td>
<td>The <a class="link" href="libedataserver-e-util.html#tm" title="struct tm"><span class="type">tm</span></a> to convert to a string.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>use_24_hour_format</code></em> :</span></p></td>
<td>A <span class="type">gboolean</span>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>show_zero_seconds</code></em> :</span></p></td>
<td>A <span class="type">gboolean</span>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>The <span class="type">char</span> buffer to store the result in.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer_size</code></em> :</span></p></td>
<td>The length of <em class="parameter"><code>buffer</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="e-mktime-utc"></a><h3>e_mktime_utc ()</h3>
<pre class="programlisting"><span class="returnvalue">time_t</span>              e_mktime_utc                        (<em class="parameter"><code><span class="type">struct tm</span> *tm</code></em>);</pre>
<p>
Like mktime(3), but assumes UTC instead of local timezone.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>tm</code></em> :</span></p></td>
<td>The <a class="link" href="libedataserver-e-util.html#tm" title="struct tm"><span class="type">tm</span></a> to convert to a calendar time representation.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The calendar time representation of <em class="parameter"><code>tm</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="e-localtime-with-offset"></a><h3>e_localtime_with_offset ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                e_localtime_with_offset             (<em class="parameter"><code><span class="type">time_t</span> tt</code></em>,
                                                         <em class="parameter"><code><span class="type">struct tm</span> *tm</code></em>,
                                                         <em class="parameter"><code><span class="type">gint</span> *offset</code></em>);</pre>
<p>
Converts the calendar time time representation <em class="parameter"><code>tt</code></em> to a broken-down
time representation, store in <em class="parameter"><code>tm</code></em>, and provides the offset in
seconds from UTC time, stored in <em class="parameter"><code>offset</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>tt</code></em> :</span></p></td>
<td>The <span class="type">time_t</span> to convert.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>tm</code></em> :</span></p></td>
<td>The <a class="link" href="libedataserver-e-util.html#tm" title="struct tm"><span class="type">tm</span></a> to store the result in.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
<td>The <span class="type">int</span> to store the offset in.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="e-time-get-d-fmt-with-4digit-year"></a><h3>e_time_get_d_fmt_with_4digit_year ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> *             e_time_get_d_fmt_with_4digit_year   (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Retrieves a date format string with a 4-digit year (D_FMT on systems with
<code class="function">nl_langinfo()</code> available).  Free the returned string with <code class="function">g_free()</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly-allocated date format string</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.22</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>