private long getOperationTime(CloudBlobMetadata metadata) {
    if (isBlobDeleted(metadata)) {
      return metadata.getDeletionTime();
    }
    return (metadata.getCreationTime() == Utils.Infinite_Time) ? metadata.getUploadTime() : metadata.getCreationTime();
  }
Gets the operation time for a blob from blob metadata based on the blob's current state and timestamp recorded for that state.
@param metadata blob metadata from which to derive operation time.
@return operation time.
ambry-cloud/src/main/java/com/github/ambry/cloud/CloudBlobStore.java