calculate the number of days between two dates

Discussion in 'Perl Misc' started by Luca Villa, Nov 10, 2007.

  1. Luca Villa

    Luca Villa Guest

    Given two dates like the following
    Feb-14-07 18:20:11
    Mar-03-07 20:32:19
    how can I calculate the number of days (with decimals!) between the
    first an
    d the second?
    Are there any ready solution on the web?
     
    Luca Villa, Nov 10, 2007
    #1
    1. Advertising

  2. Luca Villa wrote:
    > how can I calculate the number of days (with decimals!) between the
    > first and the second?
    > Are there any ready solution on the web?


    Your Question is Asked Frequently, please see "perldoc -q date":

    How can I compare two dates and find the difference?

    jue
     
    Jürgen Exner, Nov 10, 2007
    #2
    1. Advertising

  3. Luca Villa

    Luca Villa Guest

    Thanks Jürgen
     
    Luca Villa, Nov 11, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian Henry
    Replies:
    6
    Views:
    16,173
    Brian Henry
    Nov 19, 2003
  2. David Lozzi

    Dates dates dates dates... SQL and ASP.NET

    David Lozzi, Sep 29, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    867
    Rob Schieber
    Sep 30, 2005
  3. clintonb
    Replies:
    9
    Views:
    886
    James Kanze
    May 23, 2007
  4. chrismo
    Replies:
    2
    Views:
    181
    Phrogz
    Jan 16, 2007
  5. kirke

    list of days between two days

    kirke, Oct 19, 2006, in forum: Javascript
    Replies:
    7
    Views:
    138
    Julian Turner
    Oct 20, 2006
Loading...

Share This Page