Support for serializing and deserializing time data