Here you can find the source of todayBeginTime()
public static Timestamp todayBeginTime()
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; import java.time.LocalDate; public class Main { public static Timestamp todayBeginTime() { return Timestamp.valueOf(LocalDate.now().atStartOfDay()); }//from w w w . j a va 2 s. c om }