Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Apr 2002 13:49:20 +0200
From:      Roman Neuhauser <neuhauser@mail.cz>
To:        Jan Grant <Jan.Grant@bristol.ac.uk>
Cc:        johann@broadpark.no, questions <questions@freebsd.org>
Subject:   Re: FreeBSD weirdness -- why does things have to be like this?
Message-ID:  <20020411114920.GQ12083@roman.mobil.cz>
In-Reply-To: <Pine.GSO.4.44.0204111141450.17335-100000@mail.ilrt.bris.ac.uk>
References:  <20020410143605.GX12083@roman.mobil.cz> <Pine.GSO.4.44.0204111141450.17335-100000@mail.ilrt.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Thu, 11 Apr 2002 11:45:27 +0100 (BST)
> From: Jan Grant <Jan.Grant@bristol.ac.uk>
> To: Roman Neuhauser <neuhauser@mail.cz>
> Cc: johann@broadpark.no, questions <questions@freebsd.org>
> Subject: Re: FreeBSD weirdness -- why does things have to be like this?
> 
> On Wed, 10 Apr 2002, Roman Neuhauser wrote:
> 
> >     Nope. The second example is bogus. Watch this:
> >     `Wed Apr 10 14:43:16 CEST 2002'
> >     `Tue Apr  9 14:43:16 CEST 2002'
> >     Now, if only I could recall the ISO number this obeys.
> 
> I'd be very surprised if there was one; ISO 8806 is the standard format;
> conforming date/time representations don't look anything like this.

    You probably mean 8601, but you're right.
    The format returned by date(1) is similar to the RFC 822 format,
    and is the same on RedHat (at least).

    Anyway, what I was trying to point out is that the string returned
    by date(1) has two spaces between the month abbr and the day of
    month, when day of month is less than 10, to preserve the length and
    alignment of the string.

     `Wed Apr 10 14:43:16 CEST 2002'
     `Tue Apr  9 14:43:16 CEST 2002'

    IOW, the whitespace is not 'spurious' or what the original poster
    said.

-- 
FreeBSD 4.4-STABLE
1:41PM up 17 days, 20:27, 25 users, load averages: 0.11, 0.05, 0.01

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?20020411114920.GQ12083>