Add option to serialize directly from UnixTime/UnixTimeMs