LocalTime now(ZoneId) method in Java with Examples Last Updated : 12 May, 2020 Comments Improve Suggest changes Like Article Like Report The now(ZoneId zone) method of the LocalTime class in Java is used to get the current time from the system clock in the specified time-zone. Syntax: public static LocalTime now(ZoneId zone) Parameters: This method accepts ZoneId as parameter. Return value: This method returns the current time using the system clock. Below programs illustrate the now(ZoneId zone) method of LocalTime in Java: Program 1: Java // Java program to demonstrate // LocalTime.now(ZoneId zone) method import java.time.*; import java.time.temporal.*; public class GFG { public static void main(String[] args) { // apply now(ZoneId zone) method // of LocalTime class LocalTime time = LocalTime.now( ZoneId.systemDefault()); // print time System.out.println("Time: " + time); } } Output: Time: 20:57:30.035 Program 2: Java // Java program to demonstrate // LocalTime.now(ZoneId zone) method import java.time.*; import java.time.temporal.*; public class GFG { public static void main(String[] args) { // apply now(ZoneId zone) method // of LocalTime class LocalTime time = LocalTime.now( ZoneId.systemDefault()); // print time System.out.println("Time: " + time); } } Output: Time: 20:57:50.318 References: https://docs.oracle.com/javase/10/docs/api/java/time/LocalTime.html#now(java.time.ZoneId) Comment More infoAdvertise with us Next Article LocalDate now() Method in Java with Examples P pp_pankaj Follow Improve Article Tags : Java Java-Functions Java-LocalTime Practice Tags : Java Similar Reads LocalTime now() method in Java with Examples The now() method of the LocalTime class in Java is used to get the current time from the system clock in the default time-zone. Syntax: public static LocalTime now() Parameters: This method does not accept any parameter. Return value: This method returns the current time using the system clock and d 1 min read LocalDate now() Method in Java with Examples In LocalDate class, there are three types of now() method depending upon the parameters passed to it. now() now() method of a LocalDate class used to obtain the current date from the system clock in the default time-zone.This method will return LocalDate based on system clock with default time-zone 2 min read LocalDate now() Method in Java with Examples In LocalDate class, there are three types of now() method depending upon the parameters passed to it. now() now() method of a LocalDate class used to obtain the current date from the system clock in the default time-zone.This method will return LocalDate based on system clock with default time-zone 2 min read LocalDateTime now() Method in Java with Examples In LocalDateTime class, there are three types of now() method depending upon the parameters passed to it. now() now() method of a LocalDateTime class used to obtain the current date-time from the system clock in the default time-zone.This method will return LocalDateTime based on system clock with d 2 min read LocalDateTime now() Method in Java with Examples In LocalDateTime class, there are three types of now() method depending upon the parameters passed to it. now() now() method of a LocalDateTime class used to obtain the current date-time from the system clock in the default time-zone.This method will return LocalDateTime based on system clock with d 2 min read MonthDay now(ZoneId) method in Java with Examples The now(ZoneId zone) method of the MonthDay class in Java is used to get the current month-day from the system clock in the specified time-zone. Syntax: public static MonthDay now(ZoneId zone) Parameters: This method accepts ZoneId as parameter. Return value: This method returns the current month-da 1 min read Like