A port of Joda Time to PHP