LocalTime

suggest change

Versions

[{“Name”:“Java SE 8”,“GroupName”:null},{“Name”:“Java SE 9 (Early Access)”,“GroupName”:null}]

Syntax

Parameters

Method| Output | —— | —— |LocalTime.of(13, 12, 11)| 13:12:11|LocalTime.MIDNIGHT| 00:00|LocalTime.NOON| 12:00|LocalTime.now()| Current time from system clock|LocalTime.MAX| The maximum supported local time 23:59:59.999999999|LocalTime.MIN| The minimum supported local time 00:00|LocalTime.ofSecondOfDay(84399)| 23:59:59 , Obtains Time from second-of-day value|LocalTime.ofNanoOfDay(2000000000)| 00:00:02 , Obtains Time from nanos-of-day value|

Remarks

As class name denotes, LocalTime represents a time without a time-zone. It doesn’t represent a date. It’s a simple label for a given time.

The class is value-based and the equals method should be used when doing comparisons.

This class is from the package java.time.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


LocalTime:
* LocalTime
* Intro

Table Of Contents
8 Arrays
10 Maps
11 Strings
25 JAXB
29 Enums
32 Audio
41 Scanner
63 Logging
75 Lists
77 LocalTime
78 Sets
89 JAX-WS
96 XJC
98 Process
106 Modules
114 Applets
122 JNDI
139 JavaBean
141 Literals
144 Packages
150 JMX
153 JShell
159 Sockets
167 Enum Map
175 Hashtable
177 SortedMap