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(Clock clock) 

Source Link

Document

Obtains the current month-day from the specified clock.

Usage

From source file:Main.java

public static void main(String[] args) {
    MonthDay m = MonthDay.now(Clock.systemUTC());

    System.out.println(m);

}

From source file:Main.java

public static void main(String[] args) {
    MonthDay m = MonthDay.now(ZoneId.systemDefault());

    System.out.println(m);

}