aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdtime
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2003-01-04 10:28:49 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2003-01-04 10:28:49 +0000
commitd7b1adbdaf4cdbc6143c6ea501b6c30e0dc0bb13 (patch)
tree11757038f1f5bbc5f4cafb31c1cf022a7ce198fa /lib/libc/stdtime
parenteec27f17a2f468ed799913bbe4a6894ac8f8dd86 (diff)
Notes
Diffstat (limited to 'lib/libc/stdtime')
-rw-r--r--lib/libc/stdtime/strptime.323
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/libc/stdtime/strptime.3 b/lib/libc/stdtime/strptime.3
index e04678dff1e8..efd6b39a06ac 100644
--- a/lib/libc/stdtime/strptime.3
+++ b/lib/libc/stdtime/strptime.3
@@ -67,6 +67,29 @@ and
are now interpreted as beginning at 1969 per POSIX requirements.
Years 69-00 are interpreted in the 20th century (1969-2000), years
01-68 in the 21st century (2001-2068).
+.Pp
+If the
+.Fa format
+string does not contain enough conversion specifications to completely
+specify the resulting
+.Vt struct tm ,
+the unspecified members of
+.Va timeptr
+are left untouched.
+For example, if
+.Fa format
+is
+.Dq Li "%H:%M:%S" ,
+only
+.Va tm_hour ,
+.Va tm_sec
+and
+.Va tm_min
+will be modified.
+If time relative to today is desired, initialize the
+.Fa timeptr
+structure with today's date before passing it to
+.Fn strptime .
.Sh RETURN VALUES
Upon successful completion,
.Fn strptime