Subject: lib/2148: strftime documentation (?) is wrong
To: None <gnats-bugs@NetBSD.ORG>
From: Iain Hibbert <plunky@skate.demon.co.uk>
List: netbsd-bugs
Date: 02/28/1996 20:40:56
>Number:         2148
>Category:       lib
>Synopsis:       strftime %X and %x are mixed up in man page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 28 21:35:00 1996
>Last-Modified:
>Originator:     Iain Hibbert
>Organization:
None
>Release:        1.1
>Environment:
System: NetBSD skate.demon.co.uk 1.1 NetBSD 1.1 (skate) #0: Sun Dec 10 13:57:07 GMT 1995 plunky@skate.demon.co.uk:/home/plunky/src/sys/arch/sparc/compile/skate sparc


>Description:
In /usr/src/lib/libc/string/strftime.3, I believe that the %X and %x
descriptions are wrongly specified..  %x should be the date, and %X the
time, not the other way around.

I think this is correct anyway, either the documentation or the function
is wrong, and I do not have the relevant ANSI spec to hand..  however, the
Tin 1.22 sources contain an alternative strftime function which behaves
the same way as ours does (ie the documentation is wrong).
  
>How-To-Repeat:
yeah, er.. read the man page :)
>Fix:
edit /usr/src/lib/libc/string/strftime.3 and change the offending words around.
>Audit-Trail:
>Unformatted: