anne has asked for the wisdom of the Perl Monks concerning the following question:
I tried the above code....$cur_time = GetCurrentTime(); ($cdate, $ctime) = split(/ /, $cur_time); ($chour,$cmin,$csec) = split(/:/, $ctime); $current_time = ($chour*3600) + ($cmin*60) + $csec; same way for the req time: $requested_time = ($hour*3600) + ($min*60) + $sec; if (($current_time - $requested_time) >= 3600 Do processing.....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Compare Date and Time
by marto (Cardinal) on May 09, 2006 at 15:22 UTC | |
|
Re: Compare Date and Time
by davorg (Chancellor) on May 09, 2006 at 16:10 UTC | |
|
Re: Compare Date and Time
by blazar (Canon) on May 09, 2006 at 15:23 UTC | |
|
Re: Compare Date and Time
by McDarren (Abbot) on May 09, 2006 at 15:48 UTC |