Here you can find the source of getTomorrowOrderTime()
public static Timestamp getTomorrowOrderTime()
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; import java.time.*; import java.util.Date; public class Main { public static Timestamp getTomorrowOrderTime() { LocalTime midnight = LocalTime.of(11, 00); LocalDate today = LocalDate.now(ZoneId.systemDefault()); LocalDateTime todayMidnight = LocalDateTime.of(today, midnight); LocalDateTime tomorrowMidnight = todayMidnight.plusDays(1); return new Timestamp(Date.from(tomorrowMidnight.atZone(ZoneId.systemDefault()).toInstant()).getTime()); }/*from w w w . j a va 2 s . co m*/ }