LocalTime NOON example

Description

LocalTime NOON defines the time of noon in the middle of the day, '12:00'.

Syntax

NOON has the following syntax.


public static final LocalTime NOON

Example

The following example shows how to use NOON.


import java.time.LocalTime;
//from   ww  w.  ja v  a 2s .  c o m
public class Main {
  public static void main(String[] args) {
    LocalTime l = LocalTime.NOON;

    System.out.println(l);
  }
}

The code above generates the following result.





















Home »
  Java Date Time »
    java.time Reference »




Clock
DayOfWeek
Duration
Instant
LocalDate
LocalDateTime
LocalTime
Month
MonthDay
OffsetDateTime
OffsetTime
Period
Year
YearMonth
ZonedDateTime
ZoneId
ZoneOffset