Hi all,

I'm new to community as well as perl programming language. I have a perl script 
with me and I need to execute it for creating rr database (rrd), Has anybody 
worked on this before. Please help!


Urvish Jain | Software Engineer - Liquid Machines| Persistent Systems Limited
[EMAIL PROTECTED] | Cell: +91 99231 - 77075 | Tel: +91 (20) 3023 6023
Persistent Systems - Innovation in software product design, development and 
delivery -www.persistentsys.com



-----Original Message-----
From: Jeff Pang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2008 6:37 PM
To: michael wang
Cc: beginners@perl.org
Subject: Re: date info

michael wang 写道:
> Hi,
>
> if I have something like xxxx20080503, how can I get the date a year ago,
> such as  xxxx20070503 in perl?
>

you may extract the exact date from the original string (ie, use a
regex), then convert it to any date form you wanted (use POSIX::strftime
or something like that).

good luck.

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



DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

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


Reply via email to