Example usage for org.joda.time MonthDay now

List of usage examples for org.joda.time MonthDay now

Introduction

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

Prototype

public static MonthDay now() 

Source Link

Document

Obtains a MonthDay set to the current system millisecond time using ISOChronology in the default time zone.

Usage

From source file:app.sunstreak.yourpisd.util.DateHelper.java

License:Open Source License

public static boolean isAprilFools() {
    MonthDay now = MonthDay.now();
    return (now.getDayOfMonth() == 1 || now.getDayOfMonth() == 2) && now.getMonthOfYear() == 4;

}