Possible Duplicate:
Find Month difference in php?
My server hosts multiple websites, and with some of the librarys I am using, it will be very difficult upgrading to php 5.3. I plan to do it in the near future, but not at the moment.
I have two timestamps, and I want to calculate how many months are between them. PHP 5.3 has the datetime.diff function, but since I am on 5.2, I currently can not use this.
What alternatives are there for me? I know I can just grab the seconds by subtracting the timestamps and then get the months by assuming every month has 30 days, but I will be needing an accurate result.
Your help is much appreciated.