>-----Original Message-----
>From: Chris Stinemetz [mailto:chrisstinem...@gmail.com]
>Sent: Wednesday, March 21, 2012 15:14
>To: beginners@perl.org
>Subject: POSIX
>
>Is there a way to take localtime less two hours? So there is an offset of
>2?
>
>example line:
>
>my $file = sprintf("$dirPath%s00.HCSFMS023",strftime("%Y%m%d%H",localtime));
 Replace the localtime with localtime(time - ( 2 * 3_600)). If the 2 is not 
constant, then can make
that a variable also...

         If you have any questions and/or problems, please let me know. 
         Thanks. 
 
Wags ;) 
David R. Wagner 
Senior Programmer Analyst 
FedEx Services 
1.719.484.2097 Tel 
1.719.484.2419 Fax 
1.408.623.5963 Cell
http://Fedex.com/us

>
>Thank you,
>
>Chris
>
>--
>To unsubscribe, e-mail: beginners-unsubscr...@perl.org
>For additional commands, e-mail: beginners-h...@perl.org
>http://learn.perl.org/
>


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


  • POSIX Chris Stinemetz
    • RE: POSIX Wagner, David --- Sr Programmer Analyst --- CFS

Reply via email to