Home > Article > Backend Development > Php calculate time difference php date conversion example
I implemented a code to calculate the time difference and counted the number of days. I remembered that I had seen the conversion into months and days in other programs, so I started writing it. It was actually very simple, just a few conversions, but it was not in monthly statistics. It's very accurate, because I don't know how many days it is calculated when I convert it into a month, so I converted it into a month with 30 days. The error shouldn't be big, but this cannot be solved. Example, code to calculate website building time: $jztime website creation time format: 2013-01-01
|