Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java time

import java.time.LocalTime; // import the LocalTime class
...
// To display the current time (hour, minute, second, and nanoseconds)
LocalTime time = LocalTime.now();
System.out.println(time); // 11:04:57.416546
Source by compiler.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #java #time
ADD COMMENT
Topic
Name
1+9 =