protected against empty date/time