public static long toSecondsPrecisionInMs(long ms) {
    return ms - (ms % 1000);
  }
Reduces the precision of a time in milliseconds to seconds precision. Result returned is in milliseconds with last
three digits 000. Useful for comparing times kept in milliseconds that get converted to seconds and back (as is
done with HTTP date format).

@param ms time that needs to be parsed
@return milliseconds with seconds precision (last three digits 000).
ambry-api/src/main/java/com/github/ambry/rest/RestUtils.java