Example usage for org.joda.time.base AbstractDateTime getMonthOfYear

List of usage examples for org.joda.time.base AbstractDateTime getMonthOfYear

Introduction

In this page you can find the example usage for org.joda.time.base AbstractDateTime getMonthOfYear.

Prototype

public int getMonthOfYear() 

Source Link

Document

Get the month of year field value.

Usage

From source file:com.foundationdb.server.types.mcompat.mtypes.MDateAndTime.java

License:Open Source License

public static long[] fromJodaDateTime(AbstractDateTime date) {
    return new long[] { date.getYear(), date.getMonthOfYear(), date.getDayOfMonth(), date.getHourOfDay(),
            date.getMinuteOfHour(), date.getSecondOfMinute() };
}