/** * Returns the year, e.g. 2015 */ public Integer getYear() { return getFieldValue(Calendar.YEAR); }
/** * Returns the hour of the day in a 24h clock, e.g. 13=1pm */ public Integer getHour() { return getFieldValue(Calendar.HOUR_OF_DAY); }
/** * Returns the minute of the hour in the range 0-59 */ public Integer getMinute() { return getFieldValue(Calendar.MINUTE); }
/** * Returns the second of the minute in the range 0-59 */ public Integer getSecond() { return getFieldValue(Calendar.SECOND); }
/** * Returns the month with 1-index, e.g. 1=the first day of the month */ public Integer getDay() { return getFieldValue(Calendar.DAY_OF_MONTH); }
/** * Returns the milliseconds within the current second. * <p> * Note that this method returns the * same value as {@link #getNanos()} but with less precision. * </p> */ public Integer getMillis() { return getFieldValue(Calendar.MILLISECOND); }
/** * Returns the month with 0-index, e.g. 0=January */ public Integer getMonth() { return getFieldValue(Calendar.MONTH); }
/** * Returns the milliseconds within the current second. * <p> * Note that this method returns the * same value as {@link #getNanos()} but with less precision. * </p> */ public Integer getMillis() { return getFieldValue(Calendar.MILLISECOND); }
/** * Returns the minute of the hour in the range 0-59 */ public Integer getMinute() { return getFieldValue(Calendar.MINUTE); }
/** * Returns the hour of the day in a 24h clock, e.g. 13=1pm */ public Integer getHour() { return getFieldValue(Calendar.HOUR_OF_DAY); }
/** * Returns the second of the minute in the range 0-59 */ public Integer getSecond() { return getFieldValue(Calendar.SECOND); }
/** * Returns the year, e.g. 2015 */ public Integer getYear() { return getFieldValue(Calendar.YEAR); }
/** * Returns the month with 1-index, e.g. 1=the first day of the month */ public Integer getDay() { return getFieldValue(Calendar.DAY_OF_MONTH); }
/** * Returns the month with 0-index, e.g. 0=January */ public Integer getMonth() { return getFieldValue(Calendar.MONTH); }