three days ago =
$threedays = time() - (3 * 24 * 60 * 60);
@date = localtime($threedays);
On Wed, 9 Jan 2002, Jeff 'japhy' Pinyan wrote:
> On Jan 9, Scott Taylor said:
>
> >Can anyone tell me how I can set a variable to a date, then subtract x
> >number of days from it and output the new date
On Jan 9, Scott Taylor said:
>Can anyone tell me how I can set a variable to a date, then subtract x
>number of days from it and output the new date? I can't seem to find it
>anywhere.
You should use a date manipulation module, such as Date::Calc or
Date::Manip, or the standard Time::Local or