3 years I did some simple Perl at work and then stopped but need to do more.
The files I am looking at have a time/date stamp and I need to go backward for x days, gather the entries, manipulate etc:
I thought that if I get the julian date (j1) of the current date using $yday, subtract x to get a lower julian date (j2) bound then convert the julian back into dd/mm/yyyy. I would then search between the equivalents of j1 & j2.
The problem is to go from j2 into dd/mm/yyy. I cannot see to locate a function that is the reverse of $yday.
Does such a function exist?
(PS: I noted this thread http://www.sitepoint.com/forums/showthread.php?t=483502 which actually seems to do what I requirebut I'll ask my original question anyway.)



but I'll ask my original question anyway.)




Bookmarks