I want to be able to subtract and add the dates in my program,
example:- find a day 35 days before today. I could do that in a lengthy way, but I was wondering if there is a module that could make the coding easier and shorter.
I checked out with the Date::Calc module and found that it didn't have any function that could let me do that directly. The reason I need to add/subtract the days is I have the data files in the format $data_file="$DataDir/$month_names{$month}\_$day\_$year\.dat"; and I build html file today.html using the $data_file. I use localtime function to generate $month,$day and $year. If i don't find todays $data_file I have to use yesterday's data file or else day before yesterday data file to build today.html.
I appreciate your input.
Thank you,
nagesh
Edited 2001-12-13 by dvergin per author request
In reply to Date related question by nagesh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |