/** * Get the Month component of the specified time instant. * * @see org.joda.time.DateTimeField#get(long) * @see org.joda.time.ReadableDateTime#getMonthOfYear() * @param instant the time instant in millis to query. * @return the month extracted from the input. */ public int get(long instant) { return iChronology.getMonthOfYear(instant); }
/** * Get the Month component of the specified time instant. * * @see org.joda.time.DateTimeField#get(long) * @see org.joda.time.ReadableDateTime#getMonthOfYear() * @param instant the time instant in millis to query. * @return the month extracted from the input. */ public int get(long instant) { return iChronology.getMonthOfYear(instant); }
/** * @param millis from 1970-01-01T00:00:00Z * @param year precalculated year of millis */ int getDayOfMonth(long millis, int year) { int month = getMonthOfYear(millis, year); return getDayOfMonth(millis, year, month); }
/** * @param millis from 1970-01-01T00:00:00Z * @param year precalculated year of millis */ abstract int getMonthOfYear(long millis, int year);
/** * @param millis from 1970-01-01T00:00:00Z * @param year precalculated year of millis */ abstract int getMonthOfYear(long millis, int year);
/** * @param millis from 1970-01-01T00:00:00Z * @param year precalculated year of millis */ int getDayOfMonth(long millis, int year) { int month = getMonthOfYear(millis, year); return getDayOfMonth(millis, year, month); }
/** * Gets the maximum number of days in the month specified by the instant. * * @param instant millis from 1970-01-01T00:00:00Z * @return the maximum number of days in the month */ int getDaysInMonthMax(long instant) { int thisYear = getYear(instant); int thisMonth = getMonthOfYear(instant, thisYear); return getDaysInYearMonth(thisYear, thisMonth); }
/** * @param millis from 1970-01-01T00:00:00Z */ int getDayOfMonth(long millis) { int year = getYear(millis); int month = getMonthOfYear(millis, year); return getDayOfMonth(millis, year, month); }
public long roundFloor(long instant) { int year = iChronology.getYear(instant); int month = iChronology.getMonthOfYear(instant, year); return iChronology.getYearMonthMillis(year, month); }
public boolean isLeap(long instant) { int thisYear = iChronology.getYear(instant); if (iChronology.isLeapYear(thisYear)) { return (iChronology.getMonthOfYear(instant, thisYear) == iLeapMonth); } return false; }
/** * Gets the maximum number of days in the month specified by the instant. * * @param instant millis from 1970-01-01T00:00:00Z * @return the maximum number of days in the month */ int getDaysInMonthMax(long instant) { int thisYear = getYear(instant); int thisMonth = getMonthOfYear(instant, thisYear); return getDaysInYearMonth(thisYear, thisMonth); }
/** * @param millis from 1970-01-01T00:00:00Z */ int getDayOfMonth(long millis) { int year = getYear(millis); int month = getMonthOfYear(millis, year); return getDayOfMonth(millis, year, month); }
public boolean isLeap(long instant) { int thisYear = iChronology.getYear(instant); if (iChronology.isLeapYear(thisYear)) { return (iChronology.getMonthOfYear(instant, thisYear) == iLeapMonth); } return false; }
public long roundFloor(long instant) { int year = iChronology.getYear(instant); int month = iChronology.getMonthOfYear(instant, year); return iChronology.getYearMonthMillis(year, month); }
int thisMonth = iChronology.getMonthOfYear(instant, thisYear);
int thisMonth = iChronology.getMonthOfYear(instant, thisYear);
int thisMonth = iChronology.getMonthOfYear(instant, thisYear);
int minuendMonth = iChronology.getMonthOfYear(minuendInstant, minuendYear); int subtrahendYear = iChronology.getYear(subtrahendInstant); int subtrahendMonth = iChronology.getMonthOfYear(subtrahendInstant, subtrahendYear);
int thisMonth = iChronology.getMonthOfYear(instant, thisYear);
int minuendMonth = iChronology.getMonthOfYear(minuendInstant, minuendYear); int subtrahendYear = iChronology.getYear(subtrahendInstant); int subtrahendMonth = iChronology.getMonthOfYear(subtrahendInstant, subtrahendYear);