Example usage for org.joda.time ReadableDateTime getDayOfYear

List of usage examples for org.joda.time ReadableDateTime getDayOfYear

Introduction

In this page you can find the example usage for org.joda.time ReadableDateTime getDayOfYear.

Prototype

int getDayOfYear();

Source Link

Document

Get the day of year field value.

Usage

From source file:com.tmathmeyer.sentinel.ui.views.month.MonthCalendar.java

License:Open Source License

public boolean isToday(ReadableDateTime fom) {
    DateTime now = DateTime.now();/*from   w ww  .j  a v a  2 s  .co m*/
    return fom.getYear() == now.getYear() && fom.getDayOfYear() == now.getDayOfYear();
}