By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,252 Members | 1,346 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,252 IT Pros & Developers. It's quick & easy.

Date Manipulation

P: 1

I have a datetime field eg (25/01/2008 02:19:35). What I need to do is add 8 hours to this datetime field to give me a new value of (25/01/2008 10:19:35). Can this be done in Perl? Is there any sample script out there.

Thanks in advance.

Feb 4 '08 #1
Share this Question
Share on Google+
2 Replies

Expert 2.5K+
P: 4,059
I would use the Time::Local module.

there are same Date modules on CPAN you can use for this too, but I think Time::Local would be easiest since it comes with perl.

Have you tried to write any code yet?
Feb 4 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.