in reply to day of year calculation

If you convert your date into seconds of the epoch you'll be able to feed it to localtime which, in list context, outputs the year of day as 7th index. Nevertheless, I don't think that it'll be easier to convert your date into seconds of the epoch without any Modules.


--
trust in bash
but tie your camel