• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 144
  • Last Modified:

01/08-15/04=? How can I calculate such a difference ?

Need a function that will say what's the difference
(in days) between dd/mm(1) and dd/mm(2) (01/08 - 15/04 = ?)
Friend of mine does it using time() and gmctime(), but
this way seems to me too complicated for such a little
problem. Is there sth simple for it ?
 --== Thank's ! ==--
1 Solution
Kim RyanIT ConsultantCommented:
Download the Date::Manip module from CPAN

use Date::Manip;
# set up dd/mm format

# returns time in following format 0:0:DD:HH:MM:SS the days, hours, minutes, and seconds between the two
use Time::Local;
use Date::Manip;
use Date::Calc;
geniekAuthor Commented:

 Thank's a lot !
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now