The code you provided is a Java program that uses the java.time package to get the current local time and print it to the console. Here is a breakdown of the code:
When you run this program, it will output the current local time in the following format: hh:mm:ss.nnnnnnnnn, where hh is the hour, mm is the minute, ss is the second, and nnnnnnnnn is the nanosecond.
import java.time.*; public class Current_Time { public static void main(String[] args) { LocalTime t = LocalTime.now(); System.out.println("Current Local Time : " + t); } }
Current Local Time : 13:54:17.291849
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions