code: def set(self, value):
          
  
          if isinstance(value, datetime):
              value = value.strftime('%y%m%d%H%M%SZ')
              if _PY2:
                  value = value.decode('ascii')
  
          AbstractString.set(self, value)
          # Set it to None and let the class take care of converting the next
          # time that .native is called
          self._native = None
docs: Sets the value of the object
  
          :param value:
              A unicode string or a datetime.datetime object
  
          :raises:
              ValueError - when an invalid value is passed