/** * Get the value of the specified time instant. * * @param instant the time instant in millis to query * @return the day of the week extracted from the input */ public int get(long instant) { return iChronology.getDayOfWeek(instant); }
/** * Get the value of the specified time instant. * * @param instant the time instant in millis to query * @return the day of the week extracted from the input */ public int get(long instant) { return iChronology.getDayOfWeek(instant); }
/** * Get the millis for the first week of a year. * * @param year the year to use * @return millis */ long getFirstWeekOfYearMillis(int year) { long jan1millis = getYearMillis(year); int jan1dayOfWeek = getDayOfWeek(jan1millis); if (jan1dayOfWeek > (8 - iMinDaysInFirstWeek)) { // First week is end of previous year because it doesn't have enough days. return jan1millis + (8 - jan1dayOfWeek) * (long)DateTimeConstants.MILLIS_PER_DAY; } else { // First week is start of this year because it has enough days. return jan1millis - (jan1dayOfWeek - 1) * (long)DateTimeConstants.MILLIS_PER_DAY; } }
/** * Get the millis for the first week of a year. * * @param year the year to use * @return millis */ long getFirstWeekOfYearMillis(int year) { long jan1millis = getYearMillis(year); int jan1dayOfWeek = getDayOfWeek(jan1millis); if (jan1dayOfWeek > (8 - iMinDaysInFirstWeek)) { // First week is end of previous year because it doesn't have enough days. return jan1millis + (8 - jan1dayOfWeek) * (long)DateTimeConstants.MILLIS_PER_DAY; } else { // First week is start of this year because it has enough days. return jan1millis - (jan1dayOfWeek - 1) * (long)DateTimeConstants.MILLIS_PER_DAY; } }
/** * Get the value of the specified time instant. * * @param instant the time instant in millis to query * @return the day of the week extracted from the input */ public int get(long instant) { return iChronology.getDayOfWeek(instant); }
int thisDow = iChronology.getDayOfWeek(instant);
int thisDow = iChronology.getDayOfWeek(instant);
/** * Get the millis for the first week of a year. * * @param year the year to use * @return millis */ long getFirstWeekOfYearMillis(int year) { long jan1millis = getYearMillis(year); int jan1dayOfWeek = getDayOfWeek(jan1millis); if (jan1dayOfWeek > (8 - iMinDaysInFirstWeek)) { // First week is end of previous year because it doesn't have enough days. return jan1millis + (8 - jan1dayOfWeek) * (long)DateTimeConstants.MILLIS_PER_DAY; } else { // First week is start of this year because it has enough days. return jan1millis - (jan1dayOfWeek - 1) * (long)DateTimeConstants.MILLIS_PER_DAY; } }
/** * Get the value of the specified time instant. * * @param instant the time instant in millis to query * @return the day of the week extracted from the input */ public int get(long instant) { return iChronology.getDayOfWeek(instant); }
/** * Get the value of the specified time instant. * * @param instant the time instant in millis to query * @return the day of the week extracted from the input */ public int get(long instant) { return iChronology.getDayOfWeek(instant); }
/** * Get the value of the specified time instant. * * @param instant the time instant in millis to query * @return the day of the week extracted from the input */ public int get(long instant) { return iChronology.getDayOfWeek(instant); }
/** * Get the value of the specified time instant. * * @param instant the time instant in millis to query * @return the day of the week extracted from the input */ public int get(long instant) { return iChronology.getDayOfWeek(instant); }
/** * Get the value of the specified time instant. * * @param instant the time instant in millis to query * @return the day of the week extracted from the input */ public int get(long instant) { return iChronology.getDayOfWeek(instant); }
/** * Get the value of the specified time instant. * * @param instant the time instant in millis to query * @return the day of the week extracted from the input */ public int get(long instant) { return iChronology.getDayOfWeek(instant); }
/** * Get the value of the specified time instant. * * @param instant the time instant in millis to query * @return the day of the week extracted from the input */ public int get(long instant) { return iChronology.getDayOfWeek(instant); }
/** * Get the value of the specified time instant. * * @param instant the time instant in millis to query * @return the day of the week extracted from the input */ public int get(long instant) { return iChronology.getDayOfWeek(instant); }
int thisDow = iChronology.getDayOfWeek(instant);
/** * Get the millis for the first week of a year. * * @param year the year to use * @return millis */ long getFirstWeekOfYearMillis(int year) { long jan1millis = getYearMillis(year); int jan1dayOfWeek = getDayOfWeek(jan1millis); if (jan1dayOfWeek > (8 - iMinDaysInFirstWeek)) { // First week is end of previous year because it doesn't have enough days. return jan1millis + (8 - jan1dayOfWeek) * (long)DateTimeConstants.MILLIS_PER_DAY; } else { // First week is start of this year because it has enough days. return jan1millis - (jan1dayOfWeek - 1) * (long)DateTimeConstants.MILLIS_PER_DAY; } }
/** * Get the millis for the first week of a year. * * @param year the year to use * @return millis */ long getFirstWeekOfYearMillis(int year) { long jan1millis = getYearMillis(year); int jan1dayOfWeek = getDayOfWeek(jan1millis); if (jan1dayOfWeek > (8 - iMinDaysInFirstWeek)) { // First week is end of previous year because it doesn't have enough days. return jan1millis + (8 - jan1dayOfWeek) * (long)DateTimeConstants.MILLIS_PER_DAY; } else { // First week is start of this year because it has enough days. return jan1millis - (jan1dayOfWeek - 1) * (long)DateTimeConstants.MILLIS_PER_DAY; } }
/** * Get the millis for the first week of a year. * * @param year the year to use * @return millis */ long getFirstWeekOfYearMillis(int year) { long jan1millis = getYearMillis(year); int jan1dayOfWeek = getDayOfWeek(jan1millis); if (jan1dayOfWeek > (8 - iMinDaysInFirstWeek)) { // First week is end of previous year because it doesn't have enough days. return jan1millis + (8 - jan1dayOfWeek) * (long)DateTimeConstants.MILLIS_PER_DAY; } else { // First week is start of this year because it has enough days. return jan1millis - (jan1dayOfWeek - 1) * (long)DateTimeConstants.MILLIS_PER_DAY; } }