diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2019-07-19 18:58:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2019-07-19 18:58:04 +0000 |
commit | c2053bef4a057ddbd531458a39b7c194bf424202 (patch) | |
tree | 06a951126452c27e3f48dd090d7c199cc61a95ef /lib | |
parent | 7c42da4a798e40848f036283d6092643361713e8 (diff) |
Update POSIX reference to the 2008 version and correct the list of
conversion specifications that are extensions; issues reported by
Andras Farkas <deepbluemistake at gmail dot com> on misc@.
While here, note that alternative conversion modifiers have no effect
and that flags and field width specifications are not supported.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/time/strptime.3 | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/libc/time/strptime.3 b/lib/libc/time/strptime.3 index 1d670523a1d..58c7cc21968 100644 --- a/lib/libc/time/strptime.3 +++ b/lib/libc/time/strptime.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: strptime.3,v 1.29 2019/05/16 13:35:17 schwarze Exp $ +.\" $OpenBSD: strptime.3,v 1.30 2019/07/19 18:58:03 schwarze Exp $ .\" .\" Copyright (c) 1997, 1998, 2005, 2008 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -26,7 +26,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: May 16 2019 $ +.Dd $Mdocdate: July 19 2019 $ .Dt STRPTIME 3 .Os .Sh NAME @@ -250,6 +250,7 @@ The .Ox implementation always uses the C locale and ignores the global locale and the thread-specific locale. +Alternative conversion modifiers have no effect. .Pp There is no way to specify whether Daylight Saving Time is in effect when calling @@ -291,16 +292,20 @@ Otherwise, a null pointer is returned. .Sh STANDARDS The .Fn strptime -function conforms to -.St -xpg4.2 . +function conforms to the X/Open System Interfaces option of +.St -p1003.1-2008 , +except that flags and field width specifications are not supported. .Pp The -.Ql \&%G , +.Ql \&%F , .Ql \&%g , +.Ql \&%G , +.Ql \&%k , +.Ql \&%l , .Ql \&%s , .Ql \&%u , .Ql \&%V , -.Ql \&%Y , +.Ql \&%z , and .Ql \&%Z conversion specifications are extensions. |