strptime.3 (39113) | strptime.3 (46042) |
---|---|
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.\" $Id: strptime.3,v 1.1 1997/08/09 15:43:54 joerg Exp $ | 26.\" $Id: strptime.3,v 1.2 1998/09/12 21:13:29 dt Exp $ |
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 --- 16 unchanged lines hidden (view full) --- 51.Fa format 52string consists of zero or more conversion specifications and 53ordinary characters. 54All ordinary characters are matched exactly with the buffer, where 55white space in the format string will match any amount of white space 56in the buffer. 57All conversion specifications are identical to those described in 58.Xr strftime 3 . | 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 --- 16 unchanged lines hidden (view full) --- 51.Fa format 52string consists of zero or more conversion specifications and 53ordinary characters. 54All ordinary characters are matched exactly with the buffer, where 55white space in the format string will match any amount of white space 56in the buffer. 57All conversion specifications are identical to those described in 58.Xr strftime 3 . |
59.Pp 60Two-digit year values, including formats 61.Fa %d 62and 63.Fa %D , 64are now interpreted as beginning at 1970 per POSIX requirements. 65Years 70-99 are interpreted in the 20th century, years 00-69 in 66the 21st century. |
|
59.Sh RETURN VALUES 60Upon successful completion, 61.Fn strptime 62returns the pointer to the first character in 63.Fa buf 64that has not been required to satisfy the specified conversions in 65.Fa format . 66It returns --- 19 unchanged lines hidden --- | 67.Sh RETURN VALUES 68Upon successful completion, 69.Fn strptime 70returns the pointer to the first character in 71.Fa buf 72that has not been required to satisfy the specified conversions in 73.Fa format . 74It returns --- 19 unchanged lines hidden --- |