Date: Wed, 25 Oct 2000 10:30:13 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: "Andrey A. Chernov" <ache@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/stdtime strftime.3 Message-ID: <20001025103013.D43585@sunbay.com> In-Reply-To: <200010241537.IAA42774@freefall.freebsd.org>; from ache@FreeBSD.org on Tue, Oct 24, 2000 at 08:37:49AM -0700 References: <200010241537.IAA42774@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Oct 24, 2000 at 08:37:49AM -0700, Andrey A. Chernov wrote: > ache 2000/10/24 08:37:49 PDT > > Modified files: > lib/libc/stdtime strftime.3 > Log: > Describe %c better > > Submitted by: ru (with modifications) > Thanks, but don't you think then that we could just force the %c to be equivalent to "%a %Ef %T %Y" inside the code (patch attached)? -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=p Index: strftime.3 =================================================================== RCS file: /home/ncvs/src/lib/libc/stdtime/strftime.3,v retrieving revision 1.20 diff -u -p -r1.20 strftime.3 --- strftime.3 2000/10/24 15:37:48 1.20 +++ strftime.3 2000/10/25 07:29:20 @@ -98,11 +98,11 @@ is replaced by (year / 100) as decimal n digits are preceded by a zero. .It Cm %c is replaced by national representation of time and date. -The format is similar with produced by +The format is similar to that produced by .Xr asctime 3 -and should be -equivalent to "%a %Ef %T %Y" in fields order and sizes, it -implies the +and is +equivalent to "%a %Ef %T %Y". +It also implies the "3+1+6+1+8+1+4" format of output. .It Cm \&%D is equivalent to Index: strftime.c =================================================================== RCS file: /home/ncvs/src/lib/libc/stdtime/strftime.c,v retrieving revision 1.25 diff -u -p -r1.25 strftime.c --- strftime.c 2000/01/28 17:40:42 1.25 +++ strftime.c 2000/10/25 07:29:20 @@ -120,7 +120,7 @@ label: "%02d", pt, ptlim); continue; case 'c': - pt = _fmt(Locale->c_fmt, t, pt, ptlim); + pt = _fmt("%a %Ef %T %Y", t, pt, ptlim); continue; case 'D': pt = _fmt("%m/%d/%y", t, pt, ptlim); --DocE+STaALJfprDB-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001025103013.D43585>