code: def _serialize(self, value, *args, **kwargs):
          
          if value is not None:
              value = super(MSTimestamp, self)._serialize(value, *args) * 1e3
          return value
docs: Serialize given datetime to timestamp.