Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jun 2009 23:52:19 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Kirk Strauser <kirk@strauser.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Date representation as YY/DDD or YYYY/DDD
Message-ID:  <20090603235219.2e8abb8a.freebsd@edvax.de>
In-Reply-To: <200906031607.11697.kirk@strauser.com>
References:  <20090603230314.bfeecf1a.freebsd@edvax.de> <200906031607.11697.kirk@strauser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 3 Jun 2009 16:07:11 -0500, Kirk Strauser <kirk@strauser.com> wrote:
> Like this?
> 
> $ date +'%y/%j'
> 09/154
> $ date +'%Y/%j'
> 2009/154

Exactly. After re-reading "man strftime", I really found it
mentioned there:

     %j    is replaced by the day of the year as a decimal number (001-366).

Would be nice to have this in "man date", too. :-)




-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



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