def _DateTime(self): '''Return desired endianness for DateTime''' return ExprAdapter( self._PTPString, encoder=lambda obj, ctx: # TODO: Support timezone encoding. datetime.strftime(obj, '%Y%m%dT%H%M%S.%f')[:-5], decoder=lambda obj, ctx: iso8601(obj), )