Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  4 Jul 2001 15:37:55 -0700 (PDT)
From:      rfg@monkeys.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/28699: strptime(3) %d format specifier not completely documented
Message-ID:  <20010704223755.046B14DA76@segfault.monkeys.com>

next in thread | raw e-mail | index | archive | help

>Number:         28699
>Category:       docs
>Synopsis:       strptime(3) %d format specifier not completely documented
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 04 15:40:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Ronald F. Guilmette
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
Infinite Monkeys & Co.
>Environment:

	Nothing special

>Description:

	The %d format specifier, when supplied as part of the format
	string argument in a call to strptime(3), will match *either*
	a pair of consecutive digit characters (as documented for the
	%d specifier on the strftime(3) man page) *or*, additionally,
	it appears to also be willing to match a single space character
	followed by a single digit character.

	This extended functionality of the %d format specifier, when used
	with the strptime(3) function, is very useful (please don't remove
	it!) but it ought to be documented.

>How-To-Repeat:

	man 3 strptime
	man 3 strftime

>Fix:

	Add a note to the strptime(3) man page saying that %d matches either
	two digits or a space followed by a single digit.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010704223755.046B14DA76>