Feb 16, 2002 #1 fergmj Programmer Feb 21, 2001 276 US I have a $filedate that displays as Feb 12, 2002, 15:32 I want to find a way to say if $filedate is greater than 48 hours old, then ..... How do I do this? Thanks Mindy
I have a $filedate that displays as Feb 12, 2002, 15:32 I want to find a way to say if $filedate is greater than 48 hours old, then ..... How do I do this? Thanks Mindy
Feb 16, 2002 #2 LightElf Programmer Jan 27, 2002 70 RU $time = localtime(time); ... ... if ($time < localtime(time)-60*60*48){ ... } ? perldoc Date::Calc ? Upvote 0 Downvote
Feb 18, 2002 #3 Rieekan Programmer Apr 2, 2001 737 US You could also use the file operator -M on the file. -M is how old (in days) a file is since it's last modification. Upvote 0 Downvote
You could also use the file operator -M on the file. -M is how old (in days) a file is since it's last modification.