1 --- strptime.3.bsdnew 2009-11-14 13:55:44.000000000 -0800
2 +++ strptime.3 2009-11-14 14:00:22.000000000 -0800
10 .Nd parse date and time string
17 -.Fa "const char * restrict buf"
18 -.Fa "const char * restrict format"
19 -.Fa "struct tm * restrict timeptr"
20 +.Fa "const char *restrict buf"
21 +.Fa "const char *restrict format"
22 +.Fa "struct tm *restrict tm"
28 +.Fa "const char *restrict buf"
29 +.Fa "const char *restrict format"
30 +.Fa "struct tm *restrict tm"
36 function parses the string in the buffer
39 according to the string pointed to by
41 and fills in the elements of the structure pointed to by
44 The resulting values will be relative to the local time zone.
45 Thus, it can be considered the reverse operation of
47 @@ -78,7 +88,7 @@ string does not contain enough conversio
50 the unspecified members of
56 @@ -91,9 +101,17 @@ and
59 If time relative to today is desired, initialize the
62 structure with today's date before passing it to
67 +function uses the current locale, the
69 +function may be passed a locale directly. See
71 +for more information.
73 Upon successful completion,
75 @@ -104,10 +122,16 @@ that has not been required to satisfy th
78 if one of the conversions failed.
79 +.Sh LEGACY DESCRIPTION
82 +format specifier expects exactly 4 digits (leaving any trailing digits for the