Date representation as YY/DDD or YYYY/DDD
freebsd at edvax.de
Wed Jun 3 21:52:26 UTC 2009
On Wed, 3 Jun 2009 16:07:11 -0500, Kirk Strauser <kirk at strauser.com> wrote:
> Like this?
> $ date +'%y/%j'
> $ date +'%Y/%j'
Exactly. After re-reading "man strftime", I really found it
%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. :-)
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions