Debian Codegraph @

templates/man3/getdate.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "getdate"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid ""
50 "getdate, getdate_r - convert a date-plus-time string to broken-down time"
51 msgstr ""
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr ""
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr ""
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr ""
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "B<#include E<lt>time.hE<gt>>\n"
78 msgstr ""
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "B<struct tm *getdate(const char *>I<string>B<);>\n"
85 msgstr ""
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid "B<extern int getdate_err;>\n"
92 msgstr ""
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 #, no-wrap
98 msgid "B<int getdate_r(const char *restrict >I<string>B<, struct tm *restrict >I<res>B<);>\n"
99 msgstr ""
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 msgid ""
105 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
106 msgstr ""
107
108 #. type: Plain text
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 msgid "B<getdate>():"
112 msgstr ""
113
114 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 #, no-wrap
119 msgid " _XOPEN_SOURCE E<gt>= 500\n"
120 msgstr ""
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 msgid "B<getdate_r>():"
126 msgstr ""
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 #, no-wrap
132 msgid " _GNU_SOURCE\n"
133 msgstr ""
134
135 #. type: SH
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 #, no-wrap
139 msgid "DESCRIPTION"
140 msgstr ""
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 msgid ""
146 "The function B<getdate>() converts a string representation of a date and "
147 "time, contained in the buffer pointed to by I<string>, into a broken-down "
148 "time. The broken-down time is stored in a I<tm> structure, and a pointer to "
149 "this structure is returned as the function result. This I<tm> structure is "
150 "allocated in static storage, and consequently it will be overwritten by "
151 "further calls to B<getdate>()."
152 msgstr ""
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 msgid ""
158 "In contrast to B<strptime>(3), (which has a I<format> argument), "
159 "B<getdate>() uses the formats found in the file whose full pathname is "
160 "given in the environment variable B<DATEMSK>. The first line in the file "
161 "that matches the given input string is used for the conversion."
162 msgstr ""
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 msgid ""
168 "The matching is done case insensitively. Superfluous whitespace, either in "
169 "the pattern or in the string to be converted, is ignored."
170 msgstr ""
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 msgid ""
176 "The conversion specifications that a pattern can contain are those given for "
177 "B<strptime>(3). One more conversion specification is specified in "
178 "POSIX.1-2001:"
179 msgstr ""
180
181 #. type: TP
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid "B<%Z>"
186 msgstr ""
187
188 #. FIXME Is it (still) true that %Z is not supported in glibc?
189 #. Looking at the glibc 2.21 source code, where the implementation uses
190 #. strptime(), suggests that it might be supported.
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 msgid "Timezone name. This is not implemented in glibc."
195 msgstr ""
196
197 #. type: Plain text
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 msgid ""
201 "When B<%Z> is given, the structure containing the broken-down time is "
202 "initialized with values corresponding to the current time in the given "
203 "timezone. Otherwise, the structure is initialized to the broken-down time "
204 "corresponding to the current local time (as by a call to B<localtime>(3))."
205 msgstr ""
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 msgid ""
211 "When only the day of the week is given, the day is taken to be the first "
212 "such day on or after today."
213 msgstr ""
214
215 #. type: Plain text
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 msgid ""
219 "When only the month is given (and no year), the month is taken to be the "
220 "first such month equal to or after the current month. If no day is given, "
221 "it is the first day of the month."
222 msgstr ""
223
224 #. type: Plain text
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 msgid ""
228 "When no hour, minute, and second are given, the current hour, minute, and "
229 "second are taken."
230 msgstr ""
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid ""
236 "If no date is given, but we know the hour, then that hour is taken to be the "
237 "first such hour equal to or after the current hour."
238 msgstr ""
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 msgid ""
244 "B<getdate_r>() is a GNU extension that provides a reentrant version of "
245 "B<getdate>(). Rather than using a global variable to report errors and a "
246 "static buffer to return the broken down time, it returns errors via the "
247 "function result value, and returns the resulting broken-down time in the "
248 "caller-allocated buffer pointed to by the argument I<res>."
249 msgstr ""
250
251 #. type: SH
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, no-wrap
255 msgid "RETURN VALUE"
256 msgstr ""
257
258 #. type: Plain text
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 msgid ""
262 "When successful, B<getdate>() returns a pointer to a I<struct tm>. "
263 "Otherwise, it returns NULL and sets the global variable I<getdate_err> to "
264 "one of the error numbers shown below. Changes to I<errno> are unspecified."
265 msgstr ""
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 msgid ""
271 "On success B<getdate_r>() returns 0; on error it returns one of the error "
272 "numbers shown below."
273 msgstr ""
274
275 #. type: SH
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 #, no-wrap
279 msgid "ERRORS"
280 msgstr ""
281
282 #. type: Plain text
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 msgid ""
286 "The following errors are returned via I<getdate_err> (for B<getdate>()) or "
287 "as the function result (for B<getdate_r>()):"
288 msgstr ""
289
290 #. type: TP
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "B<1>"
295 msgstr ""
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 msgid ""
301 "The B<DATEMSK> environment variable is not defined, or its value is an empty "
302 "string."
303 msgstr ""
304
305 #. type: TP
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, no-wrap
309 msgid "B<2>"
310 msgstr ""
311
312 #. type: Plain text
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 msgid "The template file specified by B<DATEMSK> cannot be opened for reading."
316 msgstr ""
317
318 #. type: TP
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 #, no-wrap
322 msgid "B<3>"
323 msgstr ""
324
325 #. stat()
326 #. type: Plain text
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 msgid "Failed to get file status information."
330 msgstr ""
331
332 #. type: TP
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 #, no-wrap
336 msgid "B<4>"
337 msgstr ""
338
339 #. type: Plain text
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 msgid "The template file is not a regular file."
343 msgstr ""
344
345 #. type: TP
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 #, no-wrap
349 msgid "B<5>"
350 msgstr ""
351
352 #. type: Plain text
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 msgid "An error was encountered while reading the template file."
356 msgstr ""
357
358 #. type: TP
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 #, no-wrap
362 msgid "B<6>"
363 msgstr ""
364
365 #. Error 6 doesn't seem to occur in glibc
366 #. type: Plain text
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 msgid "Memory allocation failed (not enough memory available)."
370 msgstr ""
371
372 #. type: TP
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "B<7>"
377 msgstr ""
378
379 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 msgid "There is no line in the file that matches the input."
383 msgstr ""
384
385 #. type: TP
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 #, no-wrap
389 msgid "B<8>"
390 msgstr ""
391
392 #. type: Plain text
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 msgid "Invalid input specification."
396 msgstr ""
397
398 #. type: SH
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 #, no-wrap
402 msgid "ENVIRONMENT"
403 msgstr ""
404
405 #. type: TP
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 #, no-wrap
409 msgid "B<DATEMSK>"
410 msgstr ""
411
412 #. type: Plain text
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 msgid "File containing format patterns."
416 msgstr ""
417
418 #. type: TP
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 #, no-wrap
422 msgid "B<TZ>"
423 msgstr ""
424
425 #. type: TQ
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 #, no-wrap
429 msgid "B<LC_TIME>"
430 msgstr ""
431
432 #. type: Plain text
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 msgid "Variables used by B<strptime>(3)."
436 msgstr ""
437
438 #. type: SH
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 #, no-wrap
442 msgid "ATTRIBUTES"
443 msgstr ""
444
445 #. type: Plain text
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 msgid ""
449 "For an explanation of the terms used in this section, see B<attributes>(7)."
450 msgstr ""
451
452 #. type: tbl table
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 #, no-wrap
456 msgid "Interface"
457 msgstr ""
458
459 #. type: tbl table
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 #, no-wrap
463 msgid "Attribute"
464 msgstr ""
465
466 #. type: tbl table
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 #, no-wrap
470 msgid "Value"
471 msgstr ""
472
473 #. type: tbl table
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 #, no-wrap
477 msgid ".na\n"
478 msgstr ""
479
480 #. type: tbl table
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 #, no-wrap
484 msgid ".nh\n"
485 msgstr ""
486
487 #. type: tbl table
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 #, no-wrap
491 msgid "B<getdate>()"
492 msgstr ""
493
494 #. type: tbl table
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 #, no-wrap
498 msgid "Thread safety"
499 msgstr ""
500
501 #. type: tbl table
502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
504 #, no-wrap
505 msgid "MT-Unsafe race:getdate env locale"
506 msgstr ""
507
508 #. type: tbl table
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 #, no-wrap
512 msgid "B<getdate_r>()"
513 msgstr ""
514
515 #. type: tbl table
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 #, no-wrap
519 msgid "MT-Safe env locale"
520 msgstr ""
521
522 #. type: SH
523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
525 #, no-wrap
526 msgid "VERSIONS"
527 msgstr ""
528
529 #. type: Plain text
530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
532 msgid ""
533 "The POSIX.1 specification for B<strptime>(3) contains conversion "
534 "specifications using the B<%E> or B<%O> modifier, while such specifications "
535 "are not given for B<getdate>(). In glibc, B<getdate>() is implemented "
536 "using B<strptime>(3), so that precisely the same conversions are supported "
537 "by both."
538 msgstr ""
539
540 #. type: SH
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 #, no-wrap
544 msgid "STANDARDS"
545 msgstr ""
546
547 #. type: Plain text
548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
550 msgid "POSIX.1-2008."
551 msgstr ""
552
553 #. type: SH
554 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
555 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
556 #, no-wrap
557 msgid "HISTORY"
558 msgstr ""
559
560 #. type: Plain text
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 msgid "POSIX.1-2001."
564 msgstr ""
565
566 #. type: SH
567 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
568 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
569 #, no-wrap
570 msgid "EXAMPLES"
571 msgstr ""
572
573 #. type: Plain text
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 msgid ""
577 "The program below calls B<getdate>() for each of its command-line "
578 "arguments, and for each call displays the values in the fields of the "
579 "returned I<tm> structure. The following shell session demonstrates the "
580 "operation of the program:"
581 msgstr ""
582
583 #. type: Plain text
584 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
585 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
586 #, no-wrap
587 msgid ""
588 "$B< TFILE=$PWD/tfile>\n"
589 "$B< echo \\[aq]%A\\[aq] E<gt> $TFILE > # Full name of the day of the week\n"
590 "$B< echo \\[aq]%T\\[aq] E<gt>E<gt> $TFILE> # Time (HH:MM:SS)\n"
591 "$B< echo \\[aq]%F\\[aq] E<gt>E<gt> $TFILE> # ISO date (YYYY-MM-DD)\n"
592 "$B< date>\n"
593 "$B< export DATEMSK=$TFILE>\n"
594 "$B< ./a.out Tuesday \\[aq]2009-12-28\\[aq] \\[aq]12:22:33\\[aq]>\n"
595 "Sun Sep 7 06:03:36 CEST 2008\n"
596 "Call 1 (\"Tuesday\") succeeded:\n"
597 " tm_sec = 36\n"
598 " tm_min = 3\n"
599 " tm_hour = 6\n"
600 " tm_mday = 9\n"
601 " tm_mon = 8\n"
602 " tm_year = 108\n"
603 " tm_wday = 2\n"
604 " tm_yday = 252\n"
605 " tm_isdst = 1\n"
606 "Call 2 (\"2009-12-28\") succeeded:\n"
607 " tm_sec = 36\n"
608 " tm_min = 3\n"
609 " tm_hour = 6\n"
610 " tm_mday = 28\n"
611 " tm_mon = 11\n"
612 " tm_year = 109\n"
613 " tm_wday = 1\n"
614 " tm_yday = 361\n"
615 " tm_isdst = 0\n"
616 "Call 3 (\"12:22:33\") succeeded:\n"
617 " tm_sec = 33\n"
618 " tm_min = 22\n"
619 " tm_hour = 12\n"
620 " tm_mday = 7\n"
621 " tm_mon = 8\n"
622 " tm_year = 108\n"
623 " tm_wday = 0\n"
624 " tm_yday = 250\n"
625 " tm_isdst = 1\n"
626 msgstr ""
627
628 #. type: SS
629 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
630 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
631 #, no-wrap
632 msgid "Program source"
633 msgstr ""
634
635 #. type: Plain text
636 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
637 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
638 #, no-wrap
639 msgid ""
640 "#define _GNU_SOURCE\n"
641 "#include E<lt>stdio.hE<gt>\n"
642 "#include E<lt>stdlib.hE<gt>\n"
643 "#include E<lt>time.hE<gt>\n"
644 "\\&\n"
645 "int\n"
646 "main(int argc, char *argv[])\n"
647 "{\n"
648 " struct tm *tmp;\n"
649 "\\&\n"
650 " for (size_t j = 1; j E<lt> argc; j++) {\n"
651 " tmp = getdate(argv[j]);\n"
652 "\\&\n"
653 " if (tmp == NULL) {\n"
654 " printf(\"Call %zu failed; getdate_err = %d\\[rs]n\",\n"
655 " j, getdate_err);\n"
656 " continue;\n"
657 " }\n"
658 "\\&\n"
659 " printf(\"Call %zu (\\[rs]\"%s\\[rs]\") succeeded:\\[rs]n\", j, argv[j]);\n"
660 " printf(\" tm_sec = %d\\[rs]n\", tmp-E<gt>tm_sec);\n"
661 " printf(\" tm_min = %d\\[rs]n\", tmp-E<gt>tm_min);\n"
662 " printf(\" tm_hour = %d\\[rs]n\", tmp-E<gt>tm_hour);\n"
663 " printf(\" tm_mday = %d\\[rs]n\", tmp-E<gt>tm_mday);\n"
664 " printf(\" tm_mon = %d\\[rs]n\", tmp-E<gt>tm_mon);\n"
665 " printf(\" tm_year = %d\\[rs]n\", tmp-E<gt>tm_year);\n"
666 " printf(\" tm_wday = %d\\[rs]n\", tmp-E<gt>tm_wday);\n"
667 " printf(\" tm_yday = %d\\[rs]n\", tmp-E<gt>tm_yday);\n"
668 " printf(\" tm_isdst = %d\\[rs]n\", tmp-E<gt>tm_isdst);\n"
669 " }\n"
670 "\\&\n"
671 " exit(EXIT_SUCCESS);\n"
672 "}\n"
673 msgstr ""
674
675 #. SRC END
676 #. type: SH
677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
679 #, no-wrap
680 msgid "SEE ALSO"
681 msgstr ""
682
683 #. type: Plain text
684 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
685 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
686 msgid ""
687 "B<time>(2), B<localtime>(3), B<setlocale>(3), B<strftime>(3), B<strptime>(3)"
688 msgstr ""
689
690 #. type: TH
691 #: debian-trixie
692 #, no-wrap
693 msgid "2024-06-15"
694 msgstr ""
695
696 #. type: TH
697 #: debian-trixie
698 #, no-wrap
699 msgid "Linux man-pages 6.9.1"
700 msgstr ""
701
702 #. type: Plain text
703 #: debian-trixie
704 msgid "Standard C library (I<libc>, I<-lc>)"
705 msgstr ""
706
707 #. type: TH
708 #: fedora-44 fedora-rawhide
709 #, no-wrap
710 msgid "2024-07-23"
711 msgstr ""
712
713 #. type: TH
714 #: fedora-44 fedora-rawhide
715 #, no-wrap
716 msgid "Linux man-pages 6.13"
717 msgstr ""
718
719 #. type: TH
720 #: mageia-cauldron
721 #, no-wrap
722 msgid "Linux man-pages 6.17"
723 msgstr ""
724
725 #. type: TH
726 #: opensuse-leap-16-1 opensuse-tumbleweed
727 #, no-wrap
728 msgid "Linux man-pages (unreleased)"
729 msgstr ""