Re: kern/36902: [libc] [patch] proposed new format code %N for
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
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 1 之 2 篇):