hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/client/HddsClientUtils.java
public static long formatDateTime(String date) throws ParseException {
    Preconditions.checkNotNull(date, "Date string should not be null.");
    return ZonedDateTime.parse(date, DATE_FORMAT.get())
        .toInstant().getEpochSecond();
  }
/**
   * Convert time in ozone date format to millisecond.
   * @return time in milliseconds
   */
Convert time in ozone date format to millisecond.
@return time in milliseconds
Convert time in ozone date format to millisecond . @return time in milliseconds
public static long formatDateTime(String date) throws ParseException {
    Preconditions.checkNotNull(date, "Date string should not be null.");
    return ZonedDateTime.parse(date, DATE_FORMAT.get())
        .toInstant().getEpochSecond();
  }
public static long formatDateTime ( String date ) throws ParseException { Preconditions . checkNotNull ( date , "Date string should not be null." ) ; return ZonedDateTime . parse ( date , DATE_FORMAT . get ( ) ) . toInstant ( ) . getEpochSecond ( ) ; }
Convert time in ozone date format to millisecond.
Convert time in ozone date format to millisecond .