public static long getTtlInSecsFromExpiryMs(long expiresAtMs, long creationTimeMs) {
    return expiresAtMs == Utils.Infinite_Time ? Utils.Infinite_Time
        : Math.max(0, TimeUnit.MILLISECONDS.toSeconds(expiresAtMs - creationTimeMs));
  }
Returns a TTL (in secs) given an expiry and creation time (in ms)
@param expiresAtMs the expiry time (in ms)
@param creationTimeMs the creation time (in ms)
@return the time to live (in secs)
ambry-utils/src/main/java/com/github/ambry/utils/Utils.java