/** * Gets Timestamp for ZonedDateTime. * * @param time Time object to be converted. * @return Timestamp representing time */ public static Timestamp timestampOf(final ChronoZonedDateTime time) { return timestampOf(time.toInstant()); }
/** * Gets failure in range cut off date. * * @return the failure in range cut off date */ protected Date getFailureInRangeCutOffDate() { val cutoff = ZonedDateTime.now(ZoneOffset.UTC).minusSeconds(getFailureRangeInSeconds()); return DateTimeUtils.timestampOf(cutoff); }