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

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

Introduction

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

Prototype

public int getYear() 

Source Link

Document

Get the 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() };
}