Ported Kohana Date class