Calculate time in months between two unix timestamps

Posted by samwatt on Stack Overflow See other posts from Stack Overflow or by samwatt
Published on 2010-06-12T13:47:53Z Indexed on 2010/06/12 13:52 UTC
Read the original article Hit count: 215

Filed under:

Hi, what is the shortest way to calculate the difference in months (average num of days in a month as 30) between two unix timestamps? Date::diff is available for working with DateTime objects, but I'm wondering if there's a neat way to work this out with timestamps...

© Stack Overflow or respective owner

Related posts about php