469,344 Members | 5,424 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,344 developers. It's quick & easy.

The difference between two date times

154 100+
Hi is there a way you could get the difference between two dates and times.

Is there a function in perl to do this already?

basically i got a script and i have a start time and end time. so basically
i want the difference between the start and end to give the duration in date and time.

Could somebody please help me out with this please.

Thanks in advance
Nov 9 '07 #1
3 3137
eWish
971 Expert 512MB
What format is your date in? Knowing that would improve our chance of helping you better. I would think a module like Date::Manip or Date::Calc or other would be the best for dates in any format other that Unix(epoch).
Nov 9 '07 #2
KevinADC
4,059 Expert 2GB
What do you mean by the duration in "date and time"? Show us an example.
Nov 10 '07 #3
jonathan184
154 100+
Hi guys sorry for the delay.

The format of the date and time is going to be in 11-13-2007 13:30:09

What I mean't by duration is the result of the difference between the two datetimes.
Nov 13 '07 #4

Post your reply

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

Similar topics

1 post views Thread by Andrew | last post: by
2 posts views Thread by John | last post: by
5 posts views Thread by alcool | last post: by
3 posts views Thread by Steve | last post: by
4 posts views Thread by lenygold via DBMonster.com | last post: by
15 posts views Thread by student4lifer | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.