kern/36902: [libc] [patch] proposed new format code %N for strftime(3)
Jilles Tjoelker
jilles at stack.nl
Fri Apr 11 15:50:01 UTC 2014
The following reply was made to PR kern/36902; it has been noted by GNATS.
From: Jilles Tjoelker <jilles at stack.nl>
To: bug-followup at FreeBSD.org, ataraxia at 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
More information about the freebsd-bugs
mailing list