PHP’s date generation function is mktime(second,minute,hour,month,day,year). AAARGH. If you’re going to put a date function in a language mostly designed for doing web database work, at least do it using ISO style year-month-day-hour-minute-second increasing significance dates; say, in the same style as MySQL. The mktime function as it is now is hideously counter-intuitive for anyone who isn’t American. Worse, the format to convert dates from strings strtotime isn’t configurable and is fixed as m/d/y except where the first parameter is above 13, so I had to write a parser to convert strings from British d/m/y and put them in the mktime function manually.
Still, I’ve got to use it so might as well deal with it.