Deleted Added
full compact
strptime.3 (50476) strptime.3 (54316)
1.\"
2.\" Copyright (c) 1997 Joerg Wunsch
3.\"
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 9 unchanged lines hidden (view full) ---

18.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25.\"
1.\"
2.\" Copyright (c) 1997 Joerg Wunsch
3.\"
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 9 unchanged lines hidden (view full) ---

18.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25.\"
26.\" $FreeBSD: head/lib/libc/stdtime/strptime.3 50476 1999-08-28 00:22:10Z peter $
26.\" $FreeBSD: head/lib/libc/stdtime/strptime.3 54316 1999-12-08 15:49:10Z sheldonh $
27.\" "
28.Dd May 8, 1997
29.Dt STRPTIME 3
30.Os
31.Sh NAME
32.Nm strptime
33.Nd parse date and time string
34.Sh SYNOPSIS

--- 55 unchanged lines hidden (view full) ---

90.Sh HISTORY
91The
92.Fn strptime
93function appeared in
94.Fx 3.0 .
95.Pp
96.Sh BUGS
97The
27.\" "
28.Dd May 8, 1997
29.Dt STRPTIME 3
30.Os
31.Sh NAME
32.Nm strptime
33.Nd parse date and time string
34.Sh SYNOPSIS

--- 55 unchanged lines hidden (view full) ---

90.Sh HISTORY
91The
92.Fn strptime
93function appeared in
94.Fx 3.0 .
95.Pp
96.Sh BUGS
97The
98.Fa %C
99format specifier only accepts centuries within the range 19 to 99.
100.Pp
101Both the
102.Fa %e
103and
104.Fa %l
105format specifiers may incorrectly scan one too many digits
106if the intended values comprise only a single digit
107and that digit is followed immediately by another digit.
108Both specifiers accept zero-padded values,
109even though they are both defined as taking unpadded values.
110.Pp
111The
112.Fa %p
113format specifier has no effect unless it is parsed
114.Em after
115hour-related specifiers.
116Specifying
117.Fa %l
118without
119.Fa %p
120will produce undefined results.
121Note that 12AM
122.Pq ante meridiem
123is taken as midnight
124and 12PM
125.Pq post meridiem
126is taken as noon.
127.Pp
128The
129.Fa %U
130and
131.Fa %W
132format specifiers accept any value within the range 00 to 53
133without validating against other values supplied (like month
134or day of the year, for example).
135.Pp
136The
98.Fa %Z
99format specifier only accepts time zone abbreviations of the local time zone,
100or the value "GMT".
101This limitation is because of ambiguity due to of the over loading of time
102zone abbreviations. One such example is
103.Fa EST
104which is both Eastern Standard Time and Eastern Australia Summer Time.
137.Fa %Z
138format specifier only accepts time zone abbreviations of the local time zone,
139or the value "GMT".
140This limitation is because of ambiguity due to of the over loading of time
141zone abbreviations. One such example is
142.Fa EST
143which is both Eastern Standard Time and Eastern Australia Summer Time.