On Tue, 2011-09-20, Frank wrote:
> On Sep 20, 3:47 pm, Jorgen Grahn <
grahn+n...@snipabacken.se> wrote:
>> On Tue, 2011-09-20, Frank wrote:
>> >
http://webpages.charter.net/nightwalker/....zip
>>
>> > Change the date to any day, month or year. Click compute. Day of year
>> > will be shown.
>>
>> > A very tiny utility which has helped me while hunting files in UFCORS.
>>
>> For Unix users, the functionality already exists:
>>
>> % date -d2001-03-01 +%j
>> 060
>> % date -d2000-03-01 +%j
>> 061
>> % date -d2001-12-31 +%j
>> 365
> Well, that helps some of us! In Ubuntu, I would just run the little
> app via Wine. But then, that's not "real" Unix, eh?
As far as I'm concerned, Ubuntu and other Linux distributions are Unix.
In fact, the recipe above works on Linux, but may not work on other
Unices. Solaris date, for example, understands %j as day-of-year, but
you cannot specify the date you want to convert.