This is a simple class that converts date and time values between the ISO format (YYYY-MM-DD hh:mm:ss) used by SQL databases (DATE, TIME, DATETIME) and timestamps used in Unix systems.
The class converts ISO date and time strings guessing their type according to the string length.