Conversions between datetimes, posixes, and strings