def METHOD_NAME(self, in_timestamp: Optional[OpenTimestamp]) -> int:
    """Returns the real timestamp that should be used to open an object."""
    if in_timestamp is not None:
        return to_timestamp_ms(in_timestamp)
    if self.timestamp_ms is not None:
        return self.timestamp_ms
    return int(time.time() * 1000)