iMillis = (f = fields.millis) != null ? f : super.millis(); iSeconds = (f = fields.seconds) != null ? f : super.seconds(); iMinutes = (f = fields.minutes) != null ? f : super.minutes(); iHours = (f = fields.hours) != null ? f : super.hours(); iHalfdays = (f = fields.halfdays) != null ? f : super.halfdays(); iDays = (f = fields.days) != null ? f : super.days(); iWeeks = (f = fields.weeks) != null ? f : super.weeks(); iWeekyears = (f = fields.weekyears) != null ? f : super.weekyears(); iMonths = (f = fields.months) != null ? f : super.months(); iYears = (f = fields.years) != null ? f : super.years(); iCenturies = (f = fields.centuries) != null ? f : super.centuries(); iEras = (f = fields.eras) != null ? f : super.eras(); iMillisOfSecond = (f = fields.millisOfSecond) != null ? f : super.millisOfSecond(); iMillisOfDay = (f = fields.millisOfDay) != null ? f : super.millisOfDay(); iSecondOfMinute = (f = fields.secondOfMinute) != null ? f : super.secondOfMinute(); iSecondOfDay = (f = fields.secondOfDay) != null ? f : super.secondOfDay(); iMinuteOfHour = (f = fields.minuteOfHour) != null ? f : super.minuteOfHour(); iMinuteOfDay = (f = fields.minuteOfDay) != null ? f : super.minuteOfDay(); iHourOfDay = (f = fields.hourOfDay) != null ? f : super.hourOfDay(); iClockhourOfDay = (f = fields.clockhourOfDay) != null ? f : super.clockhourOfDay(); iHourOfHalfday = (f = fields.hourOfHalfday) != null ? f : super.hourOfHalfday(); iClockhourOfHalfday = (f = fields.clockhourOfHalfday) != null ? f : super.clockhourOfHalfday(); iHalfdayOfDay = (f = fields.halfdayOfDay) != null ? f : super.halfdayOfDay(); iDayOfWeek = (f = fields.dayOfWeek) != null ? f : super.dayOfWeek(); iDayOfMonth = (f = fields.dayOfMonth) != null ? f : super.dayOfMonth(); iDayOfYear = (f = fields.dayOfYear) != null ? f : super.dayOfYear(); iWeekOfWeekyear = (f = fields.weekOfWeekyear) != null ? f : super.weekOfWeekyear(); iWeekyear = (f = fields.weekyear) != null ? f : super.weekyear();
/** * Returns a datetime millisecond instant, formed from the given year, * month, day, and millisecond values. The set of given values must refer * to a valid datetime, or else an IllegalArgumentException is thrown. * <p> * The default implementation calls upon separate DateTimeFields to * determine the result. Subclasses are encouraged to provide a more * efficient implementation. * * @param year year to use * @param monthOfYear month to use * @param dayOfMonth day of month to use * @param millisOfDay millisecond to use * @return millisecond instant from 1970-01-01T00:00:00Z */ public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int millisOfDay) throws IllegalArgumentException { long instant = year().set(0, year); instant = monthOfYear().set(instant, monthOfYear); instant = dayOfMonth().set(instant, dayOfMonth); return millisOfDay().set(instant, millisOfDay); }
throws IllegalArgumentException long instant = year().set(0, year); instant = monthOfYear().set(instant, monthOfYear); instant = dayOfMonth().set(instant, dayOfMonth); instant = hourOfDay().set(instant, hourOfDay); instant = minuteOfHour().set(instant, minuteOfHour); instant = secondOfMinute().set(instant, secondOfMinute); return millisOfSecond().set(instant, millisOfSecond);
/** * Get the day of month field for this chronology. * * @return DateTimeField or UnsupportedDateTimeField if unsupported */ public DateTimeField dayOfMonth() { return UnsupportedDateTimeField.getInstance(DateTimeFieldType.dayOfMonth(), days()); }
/** * Get the century of era field for this chronology. * * @return DateTimeField or UnsupportedDateTimeField if unsupported */ public DateTimeField centuryOfEra() { return UnsupportedDateTimeField.getInstance(DateTimeFieldType.centuryOfEra(), centuries()); }
/** * Get the era field for this chronology. * * @return DateTimeField or UnsupportedDateTimeField if unsupported */ public DateTimeField era() { return UnsupportedDateTimeField.getInstance(DateTimeFieldType.era(), eras()); }
throws IllegalArgumentException long instant = year().set(0, year); instant = monthOfYear().set(instant, monthOfYear); instant = dayOfMonth().set(instant, dayOfMonth); instant = hourOfDay().set(instant, hourOfDay); instant = minuteOfHour().set(instant, minuteOfHour); instant = secondOfMinute().set(instant, secondOfMinute); return millisOfSecond().set(instant, millisOfSecond);
/** * Returns a datetime millisecond instant, formed from the given year, * month, day, and millisecond values. The set of given values must refer * to a valid datetime, or else an IllegalArgumentException is thrown. * <p> * The default implementation calls upon separate DateTimeFields to * determine the result. Subclasses are encouraged to provide a more * efficient implementation. * * @param year year to use * @param monthOfYear month to use * @param dayOfMonth day of month to use * @param millisOfDay millisecond to use * @return millisecond instant from 1970-01-01T00:00:00Z */ public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int millisOfDay) throws IllegalArgumentException { long instant = year().set(0, year); instant = monthOfYear().set(instant, monthOfYear); instant = dayOfMonth().set(instant, dayOfMonth); return millisOfDay().set(instant, millisOfDay); }
/** * Get the day of year field for this chronology. * * @return DateTimeField or UnsupportedDateTimeField if unsupported */ public DateTimeField dayOfYear() { return UnsupportedDateTimeField.getInstance(DateTimeFieldType.dayOfYear(), days()); }
/** * Get the century of era field for this chronology. * * @return DateTimeField or UnsupportedDateTimeField if unsupported */ public DateTimeField centuryOfEra() { return UnsupportedDateTimeField.getInstance(DateTimeFieldType.centuryOfEra(), centuries()); }
/** * Get the era field for this chronology. * * @return DateTimeField or UnsupportedDateTimeField if unsupported */ public DateTimeField era() { return UnsupportedDateTimeField.getInstance(DateTimeFieldType.era(), eras()); }
iMillis = (f = fields.millis) != null ? f : super.millis(); iSeconds = (f = fields.seconds) != null ? f : super.seconds(); iMinutes = (f = fields.minutes) != null ? f : super.minutes(); iHours = (f = fields.hours) != null ? f : super.hours(); iHalfdays = (f = fields.halfdays) != null ? f : super.halfdays(); iDays = (f = fields.days) != null ? f : super.days(); iWeeks = (f = fields.weeks) != null ? f : super.weeks(); iWeekyears = (f = fields.weekyears) != null ? f : super.weekyears(); iMonths = (f = fields.months) != null ? f : super.months(); iYears = (f = fields.years) != null ? f : super.years(); iCenturies = (f = fields.centuries) != null ? f : super.centuries(); iEras = (f = fields.eras) != null ? f : super.eras(); iMillisOfSecond = (f = fields.millisOfSecond) != null ? f : super.millisOfSecond(); iMillisOfDay = (f = fields.millisOfDay) != null ? f : super.millisOfDay(); iSecondOfMinute = (f = fields.secondOfMinute) != null ? f : super.secondOfMinute(); iSecondOfDay = (f = fields.secondOfDay) != null ? f : super.secondOfDay(); iMinuteOfHour = (f = fields.minuteOfHour) != null ? f : super.minuteOfHour(); iMinuteOfDay = (f = fields.minuteOfDay) != null ? f : super.minuteOfDay(); iHourOfDay = (f = fields.hourOfDay) != null ? f : super.hourOfDay(); iClockhourOfDay = (f = fields.clockhourOfDay) != null ? f : super.clockhourOfDay(); iHourOfHalfday = (f = fields.hourOfHalfday) != null ? f : super.hourOfHalfday(); iClockhourOfHalfday = (f = fields.clockhourOfHalfday) != null ? f : super.clockhourOfHalfday(); iHalfdayOfDay = (f = fields.halfdayOfDay) != null ? f : super.halfdayOfDay(); iDayOfWeek = (f = fields.dayOfWeek) != null ? f : super.dayOfWeek(); iDayOfMonth = (f = fields.dayOfMonth) != null ? f : super.dayOfMonth(); iDayOfYear = (f = fields.dayOfYear) != null ? f : super.dayOfYear(); iWeekOfWeekyear = (f = fields.weekOfWeekyear) != null ? f : super.weekOfWeekyear(); iWeekyear = (f = fields.weekyear) != null ? f : super.weekyear();
throws IllegalArgumentException long instant = year().set(0, year); instant = monthOfYear().set(instant, monthOfYear); instant = dayOfMonth().set(instant, dayOfMonth); instant = hourOfDay().set(instant, hourOfDay); instant = minuteOfHour().set(instant, minuteOfHour); instant = secondOfMinute().set(instant, secondOfMinute); return millisOfSecond().set(instant, millisOfSecond);
/** * Returns a datetime millisecond instant, formed from the given year, * month, day, and millisecond values. The set of given values must refer * to a valid datetime, or else an IllegalArgumentException is thrown. * <p> * The default implementation calls upon separate DateTimeFields to * determine the result. Subclasses are encouraged to provide a more * efficient implementation. * * @param year year to use * @param monthOfYear month to use * @param dayOfMonth day of month to use * @param millisOfDay millisecond to use * @return millisecond instant from 1970-01-01T00:00:00Z */ public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int millisOfDay) throws IllegalArgumentException { long instant = year().set(0, year); instant = monthOfYear().set(instant, monthOfYear); instant = dayOfMonth().set(instant, dayOfMonth); return millisOfDay().set(instant, millisOfDay); }
/** * Get the day of week field for this chronology. * * <p>DayOfWeek values are defined in * {@link org.joda.time.DateTimeConstants DateTimeConstants}. * They use the ISO definitions, where 1 is Monday and 7 is Sunday. * * @return DateTimeField or UnsupportedDateTimeField if unsupported */ public DateTimeField dayOfWeek() { return UnsupportedDateTimeField.getInstance(DateTimeFieldType.dayOfWeek(), days()); }
/** * Get the century of era field for this chronology. * * @return DateTimeField or UnsupportedDateTimeField if unsupported */ public DateTimeField centuryOfEra() { return UnsupportedDateTimeField.getInstance(DateTimeFieldType.centuryOfEra(), centuries()); }
/** * Get the era field for this chronology. * * @return DateTimeField or UnsupportedDateTimeField if unsupported */ public DateTimeField era() { return UnsupportedDateTimeField.getInstance(DateTimeFieldType.era(), eras()); }
iMillis = (f = fields.millis) != null ? f : super.millis(); iSeconds = (f = fields.seconds) != null ? f : super.seconds(); iMinutes = (f = fields.minutes) != null ? f : super.minutes(); iHours = (f = fields.hours) != null ? f : super.hours(); iHalfdays = (f = fields.halfdays) != null ? f : super.halfdays(); iDays = (f = fields.days) != null ? f : super.days(); iWeeks = (f = fields.weeks) != null ? f : super.weeks(); iWeekyears = (f = fields.weekyears) != null ? f : super.weekyears(); iMonths = (f = fields.months) != null ? f : super.months(); iYears = (f = fields.years) != null ? f : super.years(); iCenturies = (f = fields.centuries) != null ? f : super.centuries(); iEras = (f = fields.eras) != null ? f : super.eras(); iMillisOfSecond = (f = fields.millisOfSecond) != null ? f : super.millisOfSecond(); iMillisOfDay = (f = fields.millisOfDay) != null ? f : super.millisOfDay(); iSecondOfMinute = (f = fields.secondOfMinute) != null ? f : super.secondOfMinute(); iSecondOfDay = (f = fields.secondOfDay) != null ? f : super.secondOfDay(); iMinuteOfHour = (f = fields.minuteOfHour) != null ? f : super.minuteOfHour(); iMinuteOfDay = (f = fields.minuteOfDay) != null ? f : super.minuteOfDay(); iHourOfDay = (f = fields.hourOfDay) != null ? f : super.hourOfDay(); iClockhourOfDay = (f = fields.clockhourOfDay) != null ? f : super.clockhourOfDay(); iHourOfHalfday = (f = fields.hourOfHalfday) != null ? f : super.hourOfHalfday(); iClockhourOfHalfday = (f = fields.clockhourOfHalfday) != null ? f : super.clockhourOfHalfday(); iHalfdayOfDay = (f = fields.halfdayOfDay) != null ? f : super.halfdayOfDay(); iDayOfWeek = (f = fields.dayOfWeek) != null ? f : super.dayOfWeek(); iDayOfMonth = (f = fields.dayOfMonth) != null ? f : super.dayOfMonth(); iDayOfYear = (f = fields.dayOfYear) != null ? f : super.dayOfYear(); iWeekOfWeekyear = (f = fields.weekOfWeekyear) != null ? f : super.weekOfWeekyear(); iWeekyear = (f = fields.weekyear) != null ? f : super.weekyear();
throws IllegalArgumentException long instant = year().set(0, year); instant = monthOfYear().set(instant, monthOfYear); instant = dayOfMonth().set(instant, dayOfMonth); instant = hourOfDay().set(instant, hourOfDay); instant = minuteOfHour().set(instant, minuteOfHour); instant = secondOfMinute().set(instant, secondOfMinute); return millisOfSecond().set(instant, millisOfSecond);
/** * Returns a datetime millisecond instant, formed from the given year, * month, day, and millisecond values. The set of given values must refer * to a valid datetime, or else an IllegalArgumentException is thrown. * <p> * The default implementation calls upon separate DateTimeFields to * determine the result. Subclasses are encouraged to provide a more * efficient implementation. * * @param year year to use * @param monthOfYear month to use * @param dayOfMonth day of month to use * @param millisOfDay millisecond to use * @return millisecond instant from 1970-01-01T00:00:00Z */ public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int millisOfDay) throws IllegalArgumentException { long instant = year().set(0, year); instant = monthOfYear().set(instant, monthOfYear); instant = dayOfMonth().set(instant, dayOfMonth); return millisOfDay().set(instant, millisOfDay); }