Java LocalTime create now()
now()
import java.time.LocalTime; public class Main { public static void main(String[] args) { LocalTime timeOnly = LocalTime.now(); System.out.println(timeOnly); }/*from w w w. ja va 2 s. co m*/ }