Results 1 to 1 of 1

Thread: DateTime::diff

  1. #1
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,385
    Thanks
    100
    Thanked 113 Times in 111 Posts

    Default DateTime::diff

    I already found a solution to my problem of detecting the difference between one date and another using MySQL's TIMESTAMPDIFF() function, but as I was looking for the solution I came across DateTime::diff and I could not understand how to use this function.

    Any ideas on how this would be used?

    Then again the documentation says (PHP 5 >= 5.3.0) which I am only now realizing means "for PHP version 5.3.0 and newer" and I use 5.2.5.
    Last edited by james438; 03-27-2010 at 05:05 PM.
    To choose the lesser of two evils is still to choose evil. My personal site

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •