On Tue, Feb 24, 2004 at 10:49:50AM -0800, rmck ([EMAIL PROTECTED]) wrote:
> Help
> 
> I need this variable $time to show last hour (00..23) So if hour is 00, I want 23. 
> If hour is 01, I want 00, etc..... 
> 
<snip>

Take a look at the "localtime" function.
$ perldoc -f localtime

hth,
kent

-- 
"Efficiency is intelligent laziness."
  -David Dunham

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to