Example usage for java.time MonthDay now

List of usage examples for java.time MonthDay now

Introduction

In this page you can find the example usage for java.time MonthDay now.

Prototype

public static MonthDay now() 

Source Link

Document

Obtains the current month-day from the system clock in the default time-zone.

Usage

From source file:Main.java

public static void main(String[] args) {
    MonthDay m = MonthDay.now();
    ValueRange n = m.range(ChronoField.MONTH_OF_YEAR);
    System.out.println(n);//from  w  w  w.  j a  va2s .c o  m

}

From source file:Main.java

public static void main(String[] args) {
    MonthDay m = MonthDay.now();
    Chronology n = m.query(TemporalQueries.chronology());
    System.out.println(n);/*  w  ww .  j  a  v a2s. c  o m*/

}