Here you can find the source of simplifyZonedDateTime(ZonedDateTime now, long timeToWait)
private static String simplifyZonedDateTime(ZonedDateTime now, long timeToWait)
//package com.java2s; //License from project: Open Source License import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; public class Main { private static String simplifyZonedDateTime(ZonedDateTime now, long timeToWait) { return now.plusSeconds(timeToWait).format(DateTimeFormatter.ofPattern("HH:mm:ss")); }//from w w w . java2 s .com }