Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jun 2009 23:03:14 +0200
From:      Polytropon <freebsd@edvax.de>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Date representation as YY/DDD or YYYY/DDD
Message-ID:  <20090603230314.bfeecf1a.freebsd@edvax.de>

next in thread | raw e-mail | index | archive | help
I'm looking to an existing way to output a date in the format
YY/DDD, where YY is the year (last two digits) and DDD is the
of the year, starting from 1, preceeded by zeroes if needed,
and YYYY/DDD, where YYYY is the year with four digits, such
as 2009-01-01 would be 09/001, 2009-02-01 would be 2009/032.

I've read "man date" and "man strftime", and it didn't look
like this is already built in.

What am I missing?

If it's not invented yet, I'll do this on my own, but maybe
I don't need to re-invent the wheel. :-)




-- 
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?20090603230314.bfeecf1a.freebsd>