in reply to Date related question
Just a little request. I could edit your node to "fix" your formatting, but that strikes me as being very innapropriate, so I won't. However, I think you'll find that people may be more receptive if you simply slap <p></p> tags around your paragraphs. The random breaks you have hurt my eyes :) Compare:
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 or 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.
Separating out code with <code></code> tags is also helpful.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (Ovid - formatting) Re: Date related question
by nagesh (Novice) on Dec 14, 2001 at 04:08 UTC |