Date representation as YY/DDD or YYYY/DDD
Polytropon
freebsd at edvax.de
Wed Jun 3 21:03:22 UTC 2009
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, ...
More information about the freebsd-questions
mailing list