~ubuntu-branches/ubuntu/saucy/manpages/saucy

« back to all changes in this revision

Viewing changes to man3/getdate.3

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2010-11-17 16:35:58 UTC
  • mfrom: (1.1.45 upstream) (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20101117163558-9h3ho5jumqm3rdmd
Tags: 3.27-1ubuntu1
* Merge from Debian unstable; remaining changes:
  - ptrace.2, prctl.2: document Ubuntu-specific PTRACE_ATTACH,
    PR_SET_PTRACER behavior.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
.\" Modified, 2001-12-26, aeb
26
26
.\" 2008-09-07, mtk, Various rewrites; added an example program.
27
27
.\"
28
 
.TH GETDATE 3 2008-09-07 "" "Linux Programmer's Manual"
 
28
.TH GETDATE 3 2010-09-20 "" "Linux Programmer's Manual"
29
29
.SH NAME
30
30
getdate, getdate_r \- convert a date-plus-time string to broken-down time
31
31
.SH SYNOPSIS
32
 
.B "#define _XOPEN_SOURCE 500"
33
 
.br
34
32
.B "#include <time.h>"
35
33
.sp
36
34
.BI "struct tm *getdate(const char *" string );
37
35
.sp
38
36
.B "extern int getdate_err;"
39
37
.sp
40
 
.B "#define _GNU_SOURCE"
41
 
.br
42
38
.B "#include <time.h>"
43
39
.sp
44
40
.BI "int getdate_r(const char *" string ", struct tm *" res );
 
41
.sp
 
42
.in -4n
 
43
Feature Test Macro Requirements for glibc (see
 
44
.BR feature_test_macros (7)):
 
45
.in
 
46
.sp
 
47
.BR getdate ():
 
48
.ad l
 
49
.RS 4
 
50
_XOPEN_SOURCE\ >=\ 500 ||
 
51
_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
 
52
.RE
 
53
.br
 
54
.BR getdate_r ():
 
55
.ad l
 
56
.RS 4
 
57
_GNU_SOURCE
 
58
.RE
 
59
.ad
45
60
.SH DESCRIPTION
46
61
The function
47
62
.BR getdate ()
288
303
.BR strptime (3),
289
304
.BR feature_test_macros (7)
290
305
.SH COLOPHON
291
 
This page is part of release 3.26 of the Linux
 
306
This page is part of release 3.27 of the Linux
292
307
.I man-pages
293
308
project.
294
309
A description of the project,