Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2002 16:55:16 -0800
From:      "Crist J. Clark" <cristjc@earthlink.net>
To:        "J.S." <johann@broadpark.no>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Changes in the FreeBSD date-format
Message-ID:  <20020105165516.F204@gohan.cjclark.org>
In-Reply-To: <20020105170416.6c112815.johann@broadpark.no>; from johann@broadpark.no on Sat, Jan 05, 2002 at 05:04:16PM %2B0100
References:  <20020105170416.6c112815.johann@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 05, 2002 at 05:04:16PM +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 <Sat Jan  5 17:01:30 CET 2002> and some times, if I recall
> correctly, it's <Sat Jan 5 17:01:30 CET 2002>.
> 
> I'm a perfectionist, and that extra and unnecessary space is freaking me out.

The first is correct. All standards compliant (POSIX.2) systems will
print it that way. The "extra" space is there so the date string is
always the same length,

  [1001:~] date
  Sat Jan  5 16:53:47 PST 2002
  [1002:~] date -v+5d
  Thu Jan 10 16:53:54 PST 2002

                              ^ note they end on the same column.
-- 
"It's always funny until someone gets hurt. Then it's hilarious."

Crist J. Clark                     |     cjclark@alum.mit.edu
                                   |     cjclark@jhu.edu
http://people.freebsd.org/~cjc/    |     cjc@freebsd.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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