When you think of Timezones, do you think of datetime differences?
Okay, well some people must โฆ surely? Anyway, we do. We wonder, thinking about other people in the wooooorrrrllllddd, what time is it for them? Even, what day is it for them, the International Dateline blowing my tiny little mooooiiinnnnddd!
And so we wrote some PHP code to help with datetime differences whether they be related to Timezones or not. We designed a PHP web application that always starts with a defined โStart Datetimeโ and then allows either โฆ
- End Datetime (deriving Datetime Difference) โฆ or โฆ
- Datetime Difference (deriving End Datetime)
โฆ modes of use. Simple, huh?! And yet, even here, with that first scenario, a pretty fundamental thing was learnt, by yours truly, undertaking this exercise. A Datetime Difference result is only useful to the โDayโ point because any one โMonthโ can be a different length of time to another, and so, becomes difficult to express in terms of a โMonth Differenceโ.
Feel free to try our โproofof conceptโ PHP web application.
If this was interesting you may be interested in this too.