package com.logicbig.example.offsetdatetime;
import java.time.LocalDateTime;
import java.time.Month;
import java.time.OffsetDateTime;
import java.time.ZoneOffset;
public class GetMonthExample {
public static void main (String... args) {
OffsetDateTime d = OffsetDateTime.of(LocalDateTime.of(2010, 10, 3,
11, 43),
ZoneOffset.ofHours(-5));
Month month = d.getMonth();
System.out.println(month);
System.out.println(month.getValue());
}
}