From owner-freebsd-questions Sat Jan 5 17: 5:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 9413537B404 for ; Sat, 5 Jan 2002 17:05:55 -0800 (PST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 60DC478313; Sun, 6 Jan 2002 11:35:52 +1030 (CST) Date: Sun, 6 Jan 2002 11:35:52 +1030 From: Greg Lehey To: "J. S." Cc: freebsd-questions@freebsd.org Subject: Re: Changes in the FreeBSD date-format Message-ID: <20020106113552.B45844@wantadilla.lemis.com> References: <20020105170416.6c112815.johann@broadpark.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020105170416.6c112815.johann@broadpark.no> User-Agent: Mutt/1.3.23i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Saturday, 5 January 2002 at 17:04:16 +0100, J. S. wrote: > Is there any particular reason as to why the date-format in FreeBSD > appears slightly altered from time to time? > > Some times it's and some times, if I recall > correctly, it's . Well, it would be interesting to know where you saw each of these (at *exactly* the same time :-) > I'm a perfectionist, and that extra and unnecessary space is > freaking me out. This format is formatted by strftime(3), which has a fixed format. In particular, the day is represented by the %e format character: %e is replaced by the day of month as a decimal number (1-31); single digits are preceded by a blank. It would be possible, I suppose, to create a new format character which does not include the blank, but it would still be difficult to use it for date(1), since some programs rely on the format. So how did you get the format without the additional blank? I don't know, but I'm guessing it was passed as a set of parameters to something and then printed out without any additional blanks. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message