Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2014 15:50:01 GMT
From:      Jilles Tjoelker <jilles@stack.nl>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/36902: [libc] [patch] proposed new format code %N for strftime(3)
Message-ID:  <201404111550.s3BFo1aC017737@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/36902; it has been noted by GNATS.

From: Jilles Tjoelker <jilles@stack.nl>
To: bug-followup@FreeBSD.org, ataraxia@cox.rr.com
Cc:  
Subject: Re: kern/36902: [libc] [patch] proposed new format code %N for
 strftime(3)
Date: Fri, 11 Apr 2014 17:47:31 +0200

 In FreeBSD PR kern/36902, you wrote:
 > Since we have %d and %e for printing day numbers with and without
 > leading 0's, it seems reasonable that we should have the same choice
 > for month numbers. I propose %N for the new format (all the good ones
 > are taken :( ). Diffs against -current follow.
 
 It is already possible to print single-digit month numbers with a
 leading space instead of a leading zero using "%_m". Similarly, "%-m"
 will output only the digit(s). This extension is originally from glibc
 and works with day numbers as well.
 
 Considering strftime(3) letters are in short supply, it seems unwise to
 use them up without good reason.
 
 -- 
 Jilles Tjoelker



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