OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / getdate.3
index bd48d7e..5da786c 100644 (file)
@@ -27,7 +27,7 @@
 .\" Modified, 2001-12-26, aeb
 .\" 2008-09-07, mtk, Various rewrites; added an example program.
 .\"
-.TH GETDATE 3 2010-09-20 "" "Linux Programmer's Manual"
+.TH GETDATE 3 2014-06-13 "" "Linux Programmer's Manual"
 .SH NAME
 getdate, getdate_r \- convert a date-plus-time string to broken-down time
 .SH SYNOPSIS
@@ -109,7 +109,8 @@ Otherwise, the structure is initialized to the broken-down time
 corresponding to the current local time (as by a call to
 .BR localtime (3)).
 .LP
-When only the weekday is given, the day is taken to be the first such day
+When only the day of the week is given,
+the day is taken to be the first such day
 on or after today.
 .LP
 When only the month is given (and no year), the month is taken to
@@ -192,6 +193,15 @@ File containing format patterns.
 .BR TZ ", " LC_TIME
 Variables used by
 .BR strptime (3).
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR getdate ()
+function is not thread-safe.
+.LP
+The
+.BR getdate_r ()
+function is thread-safe.
 .SH CONFORMING TO
 POSIX.1-2001.
 .SH NOTES
@@ -220,7 +230,7 @@ The following shell session demonstrates the operation of the program:
 .in +4n
 .nf
 .RB "$" " TFILE=$PWD/tfile"
-.RB "$" " echo \(aq%A\(aq > $TFILE " "      # Full weekday name"
+.RB "$" " echo \(aq%A\(aq > $TFILE " "      # Full name of the day of the week"
 .RB "$" " echo \(aq%T\(aq >> $TFILE" "      # ISO date (YYYY-MM-DD)"
 .RB "$" " echo \(aq%F\(aq >> $TFILE" "      # Time (HH:MM:SS)"
 .RB "$" " date"
@@ -262,7 +272,7 @@ Call 3 ("12:22:33") succeeded:
 .SS Program source
 \&
 .nf
-#define _GNU_SOURCE 500
+#define _GNU_SOURCE
 #include <time.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -303,3 +313,12 @@ main(int argc, char *argv[])
 .BR setlocale (3),
 .BR strftime (3),
 .BR strptime (3)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.