public class HandyDate extends Object implements Serializable
e.g.
HandyDate date = new HandyDate("2011/11/27 12:34:56.789");
date.addDay(1); // 2011/11/28 12:34:56.789
date.addMonth(1); // 2011/12/28 12:34:56.789
date.moveToDayJust(); // 2011/12/28 00:00:00.000
date.moveToMonthTerminal(); // 2011/12/31 23:59:59.999
date.isYear(2011); // true
if (date.isGreaterThan(toDate("2011/12/30"))) { // true
// 2011/12/31 23:59:59.999
java.util.Date movedDate = date.getDate();
java.sql.Timestamp movedTimestamp = date.getTimestampDate();
}
date.calculateDistanceDays(toDate("2011/11/30")); // 3
The internal calendar uses default time-zone as default. e.g. new HandyDate(date).timeZone(timeZone);
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected Calendar |
_cal |
protected int |
_dayBeginHour |
protected int |
_monthBeginDay |
protected int |
_weekBeginDay |
protected int |
_yearBeginMonth |
| コンストラクタと説明 |
|---|
HandyDate(Date date)
Construct the handy date by the specified date.
|
HandyDate(LocalDate localDate)
Construct the handy date by the specified local date for the default time-zone.
|
HandyDate(LocalDateTime localDateTime)
Construct the handy date by the specified local date-time for the default time-zone.
|
HandyDate(LocalDateTime localDateTime,
TimeZone timeZone)
Construct the handy date by the specified local date-time.
|
HandyDate(LocalDate localDate,
TimeZone timeZone)
Construct the handy date by the specified local date.
|
HandyDate(String exp)
Construct the handy date by the string expression for the default time-zone.
|
HandyDate(String exp,
String pattern)
Construct the handy date by the string expression for the default time-zone.
|
HandyDate(String exp,
String pattern,
Locale locale)
Construct the handy date by the string expression for the default time-zone.
|
HandyDate(String exp,
TimeZone timeZone)
Construct the handy date by the string expression for the specified time-zone.
|
HandyDate(String exp,
TimeZone timeZone,
String pattern,
Locale locale)
Construct the handy date by the string expression for the specified time-zone.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
HandyDate |
addDay(int days)
Add days. e.g. addDay(1): 2001/01/01 to 2001/01/02
|
HandyDate |
addHour(int hours)
Add hours. e.g. addHour(1): 2001/01/01 00:00:00 to 2001/01/02 01:00:00
|
HandyDate |
addMillisecond(int milliseconds)
Add milliseconds. e.g. addMillisecond(1): 2001/01/01 00:00:00.000 to 2001/01/02 00:00:00.
|
HandyDate |
addMinute(int minutes)
Add minutes. e.g. addMinute(1): 2001/01/01 00:00:00 to 2001/01/02 00:01:00
|
HandyDate |
addMonth(int months)
Add months. e.g. addMonth(1): 2001/01/01 to 2001/02/01
|
HandyDate |
addSecond(int seconds)
Add seconds. e.g. addSecond(1): 2001/01/01 00:00:00 to 2001/01/02 00:00:01
|
HandyDate |
addWeek(int weeks)
Add weeks. e.g. addWeek(1): 2001/01/01 to 2001/01/08
|
HandyDate |
addYear(int years)
Add years. e.g. addYear(1): 2001/01/01 to 2002/01/01
|
protected void |
assertArgumentNotNull(String name,
Object value) |
protected void |
assertCompareDateArrayValid(Date[] dates) |
protected void |
assertCompareDateArrayValid(LocalDate[] dates) |
protected void |
assertCompareDateArrayValid(LocalDateTime[] dates) |
protected void |
assertConstructorArgNotNull(String name,
Object value) |
protected void |
assertConstructorArgNotNullAndNotEmpty(String name,
Object value) |
protected void |
assertNotMinusNotOver(String name,
int value,
int max) |
protected void |
assertValidDay(int day) |
protected void |
assertValidHour(int hour) |
protected void |
assertValidMillisecond(int millisecond) |
protected void |
assertValidMinute(int minute) |
protected void |
assertValidMonth(int month) |
protected void |
assertValidSecond(int second) |
HandyDate |
beginDay_Hour(Date dayBeginHour)
Begin day from the specified hour.
|
HandyDate |
beginDay_Hour(int dayBeginHour)
Begin day from the specified hour.
|
HandyDate |
beginDay_Hour(LocalDate dayBeginHour)
Begin day from the specified hour.
|
HandyDate |
beginDay_Hour(LocalDateTime dayBeginHour)
Begin day from the specified hour.
|
HandyDate |
beginDay_PreviousHour(int dayBeginHour)
Begin day from the specified hour of previous day.
|
HandyDate |
beginMonth_Day(Date monthBeginDay)
Begin month from the specified day.
|
HandyDate |
beginMonth_Day(int monthBeginDay)
Begin month from the specified day.
|
HandyDate |
beginMonth_Day(LocalDate monthBeginDay)
Begin month from the specified day.
|
HandyDate |
beginMonth_Day(LocalDateTime monthBeginDay)
Begin month from the specified day.
|
HandyDate |
beginMonth_PreviousDay(int monthBeginDay)
Begin year from the specified day of previous month.
|
HandyDate |
beginWeek_DayOfWeek(Date weekBeginDayOfWeek)
Begin week from the specified day of week.
|
HandyDate |
beginWeek_DayOfWeek(LocalDate weekBeginDayOfWeek)
Begin week from the specified day of week.
|
HandyDate |
beginWeek_DayOfWeek(LocalDateTime weekBeginDayOfWeek)
Begin week from the specified day of week.
|
HandyDate |
beginWeek_DayOfWeek1st_Sunday()
Begin week from Sunday.
|
HandyDate |
beginWeek_DayOfWeek2nd_Monday()
Begin week from Monday.
|
HandyDate |
beginWeek_DayOfWeek3rd_Tuesday()
Begin week from Tuesday.
|
HandyDate |
beginWeek_DayOfWeek4th_Wednesday()
Begin week from Wednesday.
|
HandyDate |
beginWeek_DayOfWeek5th_Thursday()
Begin week from Thursday.
|
HandyDate |
beginWeek_DayOfWeek6th_Friday()
Begin week from Friday.
|
HandyDate |
beginWeek_DayOfWeek7th_Saturday()
Begin week from Saturday.
|
HandyDate |
beginYear_Month(Date yearBeginMonth)
Begin year from the specified month.
|
HandyDate |
beginYear_Month(int yearBeginMonth)
Begin year from the specified month.
|
HandyDate |
beginYear_Month(LocalDate yearBeginMonth)
Begin year from the specified month.
|
HandyDate |
beginYear_Month(LocalDateTime yearBeginMonth)
Begin year from the specified month.
|
HandyDate |
beginYear_Month01_January()
Begin year from January (1st month).
|
HandyDate |
beginYear_Month02_February()
Begin year from February (2nd month).
|
HandyDate |
beginYear_Month03_March()
Begin year from March (3rd month).
|
HandyDate |
beginYear_Month04_April()
Begin year from April (4th month).
|
HandyDate |
beginYear_Month05_May()
Begin year from May (5th month).
|
HandyDate |
beginYear_Month06_June()
Begin year from June (6th month).
|
HandyDate |
beginYear_Month07_July()
Begin year from July (7th month).
|
HandyDate |
beginYear_Month08_August()
Begin year from August (8th month).
|
HandyDate |
beginYear_Month09_September()
Begin year from September (9th month).
|
HandyDate |
beginYear_Month10_October()
Begin year from October (10th month).
|
HandyDate |
beginYear_Month11_November()
Begin year from November (11th month).
|
HandyDate |
beginYear_Month12_December()
Begin year from December (12th month).
|
HandyDate |
beginYear_PreviousMonth(int yearBeginMonth)
Begin year from the specified month of previous year.
|
int |
calculateCalendarDistanceDays(Date date)
Calculate calendar distance of day between two date.
|
int |
calculateCalendarDistanceDays(LocalDate date)
Calculate calendar distance of day between two date.
|
int |
calculateCalendarDistanceDays(LocalDateTime date)
Calculate calendar distance of day between two date.
|
int |
calculateCalendarDistanceHours(Date date)
Calculate calendar distance of hour between two date.
|
int |
calculateCalendarDistanceHours(LocalDate date)
Calculate calendar distance of hour between two date.
|
int |
calculateCalendarDistanceHours(LocalDateTime date)
Calculate calendar distance of hour between two date.
|
long |
calculateCalendarDistanceMilliseconds(Date date)
Calculate calendar distance of millisecond between two date.
|
long |
calculateCalendarDistanceMinutes(Date date)
Calculate calendar distance of minute between two date.
|
long |
calculateCalendarDistanceMinutes(LocalDate date)
Calculate calendar distance of minute between two date.
|
long |
calculateCalendarDistanceMinutes(LocalDateTime date)
Calculate calendar distance of minute between two date.
|
int |
calculateCalendarDistanceMonths(Date date)
Calculate calendar distance of month between two date.
|
int |
calculateCalendarDistanceMonths(LocalDate date)
Calculate calendar distance of month between two date.
|
int |
calculateCalendarDistanceMonths(LocalDateTime date)
Calculate calendar distance of month between two date.
|
long |
calculateCalendarDistanceSeconds(Date date)
Calculate calendar distance of second between two date.
|
long |
calculateCalendarDistanceSeconds(LocalDate date)
Calculate calendar distance of second between two date.
|
long |
calculateCalendarDistanceSeconds(LocalDateTime date)
Calculate calendar distance of second between two date.
|
int |
calculateCalendarDistanceYears(Date date)
Calculate calendar distance of year between two date.
|
int |
calculateCalendarDistanceYears(LocalDate date)
Calculate calendar distance of year between two date.
|
int |
calculateCalendarDistanceYears(LocalDateTime date)
Calculate calendar distance of year between two date.
|
int |
calculateMeasuredDistanceDays(Date date)
Calculate measured distance of month between two date.
|
int |
calculateMeasuredDistanceDays(LocalDate date)
Calculate measured distance of month between two date.
|
int |
calculateMeasuredDistanceDays(LocalDateTime date)
Calculate measured distance of month between two date.
|
int |
calculateMeasuredDistanceHours(Date date)
Calculate measured distance of month between two date.
|
int |
calculateMeasuredDistanceHours(LocalDate date)
Calculate measured distance of month between two date.
|
int |
calculateMeasuredDistanceHours(LocalDateTime date)
Calculate measured distance of month between two date.
|
long |
calculateMeasuredDistanceMinutes(Date date)
Calculate measured distance of month between two date.
|
long |
calculateMeasuredDistanceMinutes(LocalDate date)
Calculate measured distance of month between two date.
|
long |
calculateMeasuredDistanceMinutes(LocalDateTime date)
Calculate measured distance of month between two date.
|
int |
calculateMeasuredDistanceMonths(Date date)
Calculate measured distance of month between two date.
|
int |
calculateMeasuredDistanceMonths(LocalDate date)
Calculate measured distance of month between two date.
|
int |
calculateMeasuredDistanceMonths(LocalDateTime date)
Calculate measured distance of month between two date.
|
long |
calculateMeasuredDistanceSeconds(Date date)
Calculate measured distance of month between two date.
|
long |
calculateMeasuredDistanceSeconds(LocalDate date)
Calculate measured distance of month between two date.
|
long |
calculateMeasuredDistanceSeconds(LocalDateTime date)
Calculate measured distance of month between two date.
|
int |
calculateMeasuredDistanceYears(Date date)
Calculate measured distance of year between two date.
|
int |
calculateMeasuredDistanceYears(LocalDate date)
Calculate measured distance of year between two date.
|
int |
calculateMeasuredDistanceYears(LocalDateTime date)
Calculate measured distance of year between two date.
|
int |
calculateSizeBusinessDays(Date date,
BusinessDayDeterminer determiner)
Calculate business-day size between two date.
|
int |
calculateSizeBusinessDays(LocalDate date,
BusinessDayDeterminer determiner)
Calculate business-day size between two date.
|
int |
calculateSizeBusinessDays(LocalDateTime date,
BusinessDayDeterminer determiner)
Calculate business-day size between two date.
|
int |
calculateSizeWeekdays(Date date)
Calculate weekday size between two date.
|
int |
calculateSizeWeekdays(LocalDate date)
Calculate weekday size between two date.
|
int |
calculateSizeWeekdays(LocalDateTime date)
Calculate weekday size between two date.
|
int |
calculateSizeWeekendDays(Date date)
Calculate weekend-day size between two date.
|
int |
calculateSizeWeekendDays(LocalDate date)
Calculate weekend-day size between two date.
|
int |
calculateSizeWeekendDays(LocalDateTime date)
Calculate weekend-day size between two date.
|
Date |
chooseNearestDate(Date... dates)
Choose the nearest date to this date.
|
LocalDate |
chooseNearestDate(LocalDate... dates)
Choose the nearest date to this date.
|
LocalDateTime |
chooseNearestDate(LocalDateTime... dates)
Choose the nearest date to this date.
|
Date |
chooseNearestFutureDate(Date... dates)
Choose the nearest future date to this date.
|
LocalDate |
chooseNearestFutureDate(LocalDate... dates)
Choose the nearest future date to this date.
|
LocalDateTime |
chooseNearestFutureDate(LocalDateTime... dates)
Choose the nearest future date to this date.
|
Date |
chooseNearestPastDate(Date... dates)
Choose the nearest past date to this date.
|
LocalDate |
chooseNearestPastDate(LocalDate... dates)
Choose the nearest past date to this date.
|
LocalDateTime |
chooseNearestPastDate(LocalDateTime... dates)
Choose the nearest past date to this date.
|
protected Locale |
chooseRealLocale(Locale locale) |
protected TimeZone |
chooseRealZone(TimeZone timeZone) |
HandyDate |
clearMillisecond()
Clear the millisecond.
|
HandyDate |
clearMinuteWithRear()
Clear the minute with rear parts, minutes, seconds, milliseconds.
|
HandyDate |
clearSecondWithRear()
Clear the second with rear parts, seconds, milliseconds.
|
HandyDate |
clearTimeParts()
Clear the time parts, hours, minutes, seconds, milliseconds.
|
protected Calendar |
createCalendar(TimeZone timeZone,
Locale locale) |
protected HandyDate |
createCopyInstance()
Create new instance for copy.
|
protected HandyDate |
createCopyInstance(Date date)
Create new instance for copy.
|
protected HandyDate |
createCopyInstance(LocalDate date)
Create new instance for copy.
|
protected HandyDate |
createCopyInstance(LocalDateTime date)
Create new instance for copy.
|
protected DateFormat |
createDateFormat(String pattern,
TimeZone timeZone,
Locale locale)
Create the data format for display methods.
|
protected DateCompareCallback |
createGreaterEqualDateCompareCallback() |
protected LocalDateCompareCallback |
createGreaterEqualLocalDateCompareCallback() |
protected LocalDateTimeCompareCallback |
createGreaterEqualLocalDateTimeCompareCallback() |
protected DateCompareCallback |
createGreaterThanDateCompareCallback() |
protected LocalDateCompareCallback |
createGreaterThanLocalDateCompareCallback() |
protected LocalDateTimeCompareCallback |
createGreaterThanLocalDateTimeCompareCallback() |
protected DateCompareCallback |
createLessEqualDateCompareCallback() |
protected LocalDateCompareCallback |
createLessEqualLocalDateCompareCallback() |
protected LocalDateTimeCompareCallback |
createLessEqualLocalDateTimeCompareCallback() |
protected DateCompareCallback |
createLessThanDateCompareCallback() |
protected LocalDateCompareCallback |
createLessThanLocalDateCompareCallback() |
protected LocalDateTimeCompareCallback |
createLessThanLocalDateTimeCompareCallback() |
HandyDate |
deepCopy()
Copy this date deeply.
|
protected void |
doBeginDay_Hour(Date dayBeginHour) |
protected void |
doBeginMonth_Day(Date monthBeginDay) |
protected void |
doBeginWeek_DayOfWeek(Date weekBeginDayOfWeek) |
protected void |
doBeginYear_Month(Date yearBeginMonth) |
protected int |
doCalculateCalendarDistanceDays(Date date) |
protected int |
doCalculateCalendarDistanceHours(Date date) |
protected long |
doCalculateCalendarDistanceMinutes(Date date) |
protected int |
doCalculateCalendarDistanceMonths(Date date) |
protected long |
doCalculateCalendarDistanceSeconds(Date date) |
protected int |
doCalculateCalendarDistanceYears(Date date) |
protected int |
doCalculateMeasuredDistanceDays(Date date) |
protected int |
doCalculateMeasuredDistanceHours(Date date) |
protected long |
doCalculateMeasuredDistanceMinutes(Date date) |
protected int |
doCalculateMeasuredDistanceMonths(Date date) |
protected long |
doCalculateMeasuredDistanceSeconds(Date date) |
protected int |
doCalculateMeasuredDistanceYears(Date date) |
protected int |
doCalculateSizeBusinessDays(Date date,
BusinessDayDeterminer determiner) |
protected int |
doCalculateSizeWeekdays(Date date) |
protected int |
doCalculateSizeWeekendDays(Date date) |
protected Date |
doChooseNearestDate(Date... dates) |
protected Date |
doChooseNearestFutureDate(Date... dates) |
protected Date |
doChooseNearestPastDate(Date... dates) |
protected boolean |
doCompareAll(DateCompareCallback callback,
Date... dates) |
protected boolean |
doCompareAll(LocalDateCompareCallback callback,
LocalDate... dates) |
protected boolean |
doCompareAll(LocalDateTimeCompareCallback callback,
LocalDateTime... dates) |
protected boolean |
doCompareAny(DateCompareCallback callback,
Date... dates) |
protected boolean |
doCompareAny(LocalDateCompareCallback callback,
LocalDate... dates) |
protected boolean |
doCompareAny(LocalDateTimeCompareCallback callback,
LocalDateTime... dates) |
boolean |
equals(Object obj) |
protected String |
getBasicDispPattern() |
protected TimeZone |
getCalendarTimeZone()
Get time-zone used in the handy-date.
|
Date |
getDate()
Get created new date that has the same time of this handy date.
|
int |
getDay() |
int |
getDayOfWeek() |
int |
getFirstDayOfMonth() |
int |
getHour() |
int |
getLastDayOfMonth() |
LocalDate |
getLocalDate()
Get created new local date that has the same time of this handy date.
|
LocalDateTime |
getLocalDateTime()
Get created new local date-time that has the same time of this handy date.
|
int |
getMillisecond() |
int |
getMinute() |
Month |
getMonth() |
int |
getMonthAsOneOrigin() |
int |
getMonthAsZeroOrigin() |
int |
getSecond() |
Timestamp |
getTimestamp()
Get created new time-stamp that has the same time of this handy date.
|
TimeZone |
getTimeZone()
Get time-zone used in the handy-date.
|
int |
getWeekOfMonth() |
int |
getWeekOfYear() |
int |
getYear() |
int |
hashCode() |
protected void |
inheritBeginAttribute(HandyDate cloned) |
protected void |
inheritTimeZone(HandyDate copy) |
boolean |
isDay_MonthFirstDay()
Is the day of this date same as first day of the month?
|
boolean |
isDay_MonthLastDay()
Is the day of this date same as last day of the month?
|
boolean |
isDay(int day)
Is the day of this date same as specified day?
|
boolean |
isDayOfDateSameAs(Date date)
Is the date and day same as the specified date?
|
boolean |
isDayOfDateSameAs(HandyDate handyDate)
Is the date and day same as the specified date?
|
boolean |
isDayOfDateSameAs(LocalDate date)
Is the date and day same as the specified local date?
|
boolean |
isDayOfDateSameAs(LocalDateTime date)
Is the date and day same as the specified local date-time?
|
boolean |
isDaySameAs(Date date)
Is the day of this date same as the day of the specified date?
|
boolean |
isDaySameAs(HandyDate handyDate)
Is the day of this date same as the day of the specified date?
|
boolean |
isDaySameAs(LocalDate date)
Is the day of this date same as the day of the specified local date?
|
boolean |
isDaySameAs(LocalDateTime date)
Is the day of this date same as the day of the specified local date-time?
|
boolean |
isGreaterEqual(Date date)
Is this date greater than or equal the specified date?
|
boolean |
isGreaterEqual(LocalDate date)
Is this date greater than or equal the specified local date?
|
boolean |
isGreaterEqual(LocalDateTime date)
Is this date greater than or equal the specified local date-times?
|
boolean |
isGreaterEqualAll(Date... dates)
Is this date greater than or equal all the specified dates?
|
boolean |
isGreaterEqualAll(LocalDate... dates)
Is this date greater than or equal all the specified local dates?
|
boolean |
isGreaterEqualAll(LocalDateTime... dates)
Is this date greater than or equal all the specified local date-times?
|
boolean |
isGreaterEqualAny(Date... dates)
Is this date greater than or equal any specified dates?
|
boolean |
isGreaterEqualAny(LocalDate... dates)
Is this date greater than or equal any specified local dates?
|
boolean |
isGreaterEqualAny(LocalDateTime... dates)
Is this date greater than or equal any specified local date-times?
|
boolean |
isGreaterThan(Date date)
Is this date greater than the specified date?
|
boolean |
isGreaterThan(LocalDate date)
Is this date greater than the specified local date?
|
boolean |
isGreaterThan(LocalDateTime date)
Is this date greater than the specified local date-time?
|
boolean |
isGreaterThanAll(Date... dates)
Is this date greater than all the specified dates?
|
boolean |
isGreaterThanAll(LocalDate... dates)
Is this date greater than all the specified local dates?
|
boolean |
isGreaterThanAll(LocalDateTime... dates)
Is this date greater than all the specified local date-times?
|
boolean |
isGreaterThanAny(Date... dates)
Is this date greater than any specified dates?
|
boolean |
isGreaterThanAny(LocalDate... dates)
Is this date greater than any specified local dates?
|
boolean |
isGreaterThanAny(LocalDateTime... dates)
Is this date greater than any specified local date-times?
|
boolean |
isHour(int hour)
Is the hour of this date same as specified hour?
|
boolean |
isHourOfDateSameAs(Date date)
Is the date and hour same as the specified date?
|
boolean |
isHourOfDateSameAs(HandyDate handyDate)
Is the date and hour same as the specified date?
|
boolean |
isHourSameAs(Date date)
Is the hour of this date same as the hour of the specified date?
|
boolean |
isHourSameAs(HandyDate handyDate)
Is the hour of this date same as the hour of the specified date?
|
boolean |
isHourSameAs(LocalDateTime date)
Is the hour of this date same as the hour of the specified local date-time?
|
boolean |
isLessEqual(Date date)
Is this date less than or equal the specified date?
|
boolean |
isLessEqual(LocalDate date)
Is this date less than or equal the specified local date?
|
boolean |
isLessEqual(LocalDateTime date)
Is this date less than or equal the specified local date-time?
|
boolean |
isLessEqualAll(Date... dates)
Is this date less than or equal all the specified dates?
|
boolean |
isLessEqualAll(LocalDate... dates)
Is this date less than or equal all the specified local dates?
|
boolean |
isLessEqualAll(LocalDateTime... dates)
Is this date less than or equal all the specified local date-times?
|
boolean |
isLessEqualAny(Date... dates)
Is this date less than or equal any specified dates?
|
boolean |
isLessEqualAny(LocalDate... dates)
Is this date less than or equal any specified local dates?
|
boolean |
isLessEqualAny(LocalDateTime... dates)
Is this date less than or equal any specified local date-times?
|
boolean |
isLessThan(Date date)
Is this date less than the specified date?
|
boolean |
isLessThan(LocalDate date)
Is this date less than the specified local date?
|
boolean |
isLessThan(LocalDateTime date)
Is this date less than the specified local date-time?
|
boolean |
isLessThanAll(Date... dates)
Is this date less than all the specified dates?
|
boolean |
isLessThanAll(LocalDate... dates)
Is this date less than all the specified local dates?
|
boolean |
isLessThanAll(LocalDateTime... dates)
Is this date less than all the specified local date-times?
|
boolean |
isLessThanAny(Date... dates)
Is this date less than any specified dates?
|
boolean |
isLessThanAny(LocalDate... dates)
Is this date less than any specified local dates?
|
boolean |
isLessThanAny(LocalDateTime... dates)
Is this date less than any specified local date-times?
|
boolean |
isMatch(Date date)
Is this date match the specified date?
|
boolean |
isMinute(int minute)
Is the minute of this date same as specified minute?
|
boolean |
isMinuteOfDateSameAs(Date date)
Is the date and hour and minute same as the specified date?
|
boolean |
isMinuteOfDateSameAs(HandyDate handyDate)
Is the date and hour and minute same as the specified date?
|
boolean |
isMinuteSameAs(Date date)
Is the minute of this date same as the minute of the specified date?
|
boolean |
isMinuteSameAs(HandyDate handyDate)
Is the minute of this date same as the minute of the specified date?
|
boolean |
isMinuteSameAs(LocalDateTime date)
Is the minute of this date same as the minute of the specified local date-time?
|
boolean |
isMonth(int month)
Is the month of this date same as specified month?
|
boolean |
isMonth(Month month)
Is the month of this date same as specified month?
|
boolean |
isMonth01_January()
Is the month January?
|
boolean |
isMonth02_February()
Is the month February?
|
boolean |
isMonth03_March()
Is the month March?
|
boolean |
isMonth04_April()
Is the month April?
|
boolean |
isMonth05_May()
Is the month May?
|
boolean |
isMonth06_June()
Is the month June?
|
boolean |
isMonth07_July()
Is the month July?
|
boolean |
isMonth08_August()
Is the month August?
|
boolean |
isMonth09_September()
Is the month September?
|
boolean |
isMonth10_October()
Is the month October?
|
boolean |
isMonth11_November()
Is the month November?
|
boolean |
isMonth12_December()
Is the month December?
|
boolean |
isMonthOfYearSameAs(Date date)
Is the year and month of this date same as the specified date?
|
boolean |
isMonthOfYearSameAs(HandyDate handyDate)
Is the year and month of this date same as the specified date?
|
boolean |
isMonthSameAs(Date date)
Is the month of this date same as the month of the specified date?
|
boolean |
isMonthSameAs(HandyDate handyDate)
Is the month of this date same as the month of the specified date?
|
boolean |
isMonthSameAs(LocalDate date)
Is the month of this date same as the month of the specified local date?
|
boolean |
isMonthSameAs(LocalDateTime date)
Is the month of this date same as the month of the specified local date-time?
|
boolean |
isSecond(int second)
Is the second of this date same as specified second?
|
boolean |
isSecondOfDateSameAs(Date date)
Is the date and time same as the specified date?
|
boolean |
isSecondOfDateSameAs(HandyDate handyDate)
Is the date and time same as the specified date?
|
boolean |
isSecondSameAs(Date date)
Is the second of this date same as the second of the specified date?
|
boolean |
isSecondSameAs(HandyDate handyDate)
Is the second of this date same as the second of the specified date?
|
boolean |
isSecondSameAs(LocalDateTime date)
Is the second of this date same as the second of the specified local date-time?
|
boolean |
isWeek_DayOfWeek1st_Sunday()
Is the day of week Sunday?
|
boolean |
isWeek_DayOfWeek2nd_Monday()
Is the day of week Monday?
|
boolean |
isWeek_DayOfWeek3rd_Tuesday()
Is the day of week Tuesday?
|
boolean |
isWeek_DayOfWeek4th_Wednesday()
Is the day of week Wednesday?
|
boolean |
isWeek_DayOfWeek5th_Thursday()
Is the day of week Thursday?
|
boolean |
isWeek_DayOfWeek6th_Friday()
Is the day of week Friday?
|
boolean |
isWeek_DayOfWeek7th_Saturday()
Is the day of week Saturday?
|
boolean |
isWeek_DayOfWeekWeekday()
Is the day of week usual weekday (not Sunday and Saturday)?
|
boolean |
isWeek_DayOfWeekWeekend()
Is the day of week usual holiday (Sunday or Saturday)?
|
boolean |
isYear_AnnoDomini()
Is the year of this date Anno Domini?
|
boolean |
isYear_BeforeChrist()
Is the year of this date Before Christ?
|
boolean |
isYear(int year)
Is the year of this date same as specified year?
|
boolean |
isYearSameAs(Date date)
Is the year of this date same as the year of the specified date?
|
boolean |
isYearSameAs(HandyDate handyDate)
Is the year of this date same as the year of the specified date?
|
boolean |
isYearSameAs(LocalDate date)
Is the year of this date same as the year of the specified local date?
|
boolean |
isYearSameAs(LocalDateTime date)
Is the year of this date same as the year of the specified local date-time?
|
HandyDate |
moveToDay(int day)
Move to the specified day.
|
HandyDate |
moveToDayJust()
Move to the day just (beginning).
|
HandyDate |
moveToDayJustAdded(int days)
Move to the day just (beginning) after the day added.
|
HandyDate |
moveToDayJustFor(int day)
Move to the day just after the day moved-to.
|
HandyDate |
moveToDayTerminal()
Move to the terminal of the day.
|
HandyDate |
moveToDayTerminalAdded(int days)
Move to the terminal of the day after the day added.
|
HandyDate |
moveToDayTerminalFor(int day)
Move to the day just after the day moved-to.
|
HandyDate |
moveToHour(int hour)
Move to the specified hour.
|
HandyDate |
moveToHourJust()
Move to the hour just (beginning).
|
HandyDate |
moveToHourJustAdded(int hours)
Move to the hour just (beginning) after the hour added.
|
HandyDate |
moveToHourJustFor(int hour)
Move to the hour just (beginning) after the hour moved-to.
|
HandyDate |
moveToHourJustNoon()
Move to the hour just noon.
|
HandyDate |
moveToHourTerminal()
Move to the terminal of the hour.
|
HandyDate |
moveToHourTerminalAdded(int hours)
Move to the terminal of the hour after the hour added.
|
HandyDate |
moveToHourTerminalFor(int hour)
Move to the terminal of the hour after the hour moved-to.
|
HandyDate |
moveToMillisecond(int millisecond)
Move to the specified millisecond.
|
HandyDate |
moveToMinute(int minute)
Move to the specified minute.
|
HandyDate |
moveToMinuteJust()
Move to the minute just (beginning).
|
HandyDate |
moveToMinuteJustAdded(int minutes) |
HandyDate |
moveToMinuteJustFor(int minute) |
HandyDate |
moveToMinuteTerminal()
Move to the terminal of the minute.
|
HandyDate |
moveToMinuteTerminalFor(int minute) |
HandyDate |
moveToMinuteTerminalÅdded(int minutes) |
HandyDate |
moveToMonth(int month)
Move to the specified month.
|
HandyDate |
moveToMonthFirstWeekdayJust()
Move to the first weekday just of the month.
|
HandyDate |
moveToMonthFirstWeekendJust()
Move to the first weekend just of the month.
|
HandyDate |
moveToMonthJust()
Move to the month just (beginning).
|
HandyDate |
moveToMonthJustAdded(int months)
Move to the month just (beginning) after the month added.
|
HandyDate |
moveToMonthJustFor(int month)
Move to the month just (beginning) after the month moved-to.
|
HandyDate |
moveToMonthLastWeekdayTerminal()
Move to the terminal of the month last weekday.
|
HandyDate |
moveToMonthLastWeekendTerminal()
Move to the terminal of the month last weekend.
|
HandyDate |
moveToMonthTerminal()
Move to the terminal of the month.
|
HandyDate |
moveToMonthTerminalAdded(int months)
Move to the terminal of the month after the month added.
|
HandyDate |
moveToMonthTerminalFor(int month)
Move to the terminal of the month after the month moved-to.
|
HandyDate |
moveToNextBusinessDay(BusinessDayDeterminer determiner)
Move to the next business day (only added days).
|
HandyDate |
moveToNextBusinessDay(int movedDays,
BusinessDayDeterminer determiner)
Move to the next business day (only added days).
|
HandyDate |
moveToQuarterOfYearJust()
Move to the quarter of year just (beginning).
|
HandyDate |
moveToQuarterOfYearJustAdded(int quarterOfYear) |
HandyDate |
moveToQuarterOfYearJustFor(int quarterOfYear) |
HandyDate |
moveToQuarterOfYearTerminal() |
HandyDate |
moveToQuarterOfYearTerminalAdded(int quarterOfYear) |
HandyDate |
moveToQuarterOfYearTerminalFor(int quarterOfYear) |
HandyDate |
moveToSecond(int second)
Move to the specified second.
|
HandyDate |
moveToSecondJust()
Move to the second just (beginning).
|
HandyDate |
moveToSecondJustAdded(int seconds) |
HandyDate |
moveToSecondJustFor(int second) |
HandyDate |
moveToSecondTerminal()
Move to the terminal of the second.
|
HandyDate |
moveToSecondTerminalAdded(int seconds) |
HandyDate |
moveToSecondTerminalFor(int second) |
HandyDate |
moveToWeekJust()
Move to the week just (beginning).
|
HandyDate |
moveToWeekOfMonth(int weekOfMonth) |
HandyDate |
moveToWeekOfYear(int weekOfYear) |
HandyDate |
moveToWeekTerminal()
Move to the terminal of the week.
|
HandyDate |
moveToYear(int year)
Move to the specified year.
|
HandyDate |
moveToYearJust()
Move to the year just (beginning).
|
HandyDate |
moveToYearJustAdded(int years)
Move to the year just (beginning) after the year added.
|
HandyDate |
moveToYearJustFor(int year)
Move to the year just (beginning) after the year moved-to.
|
HandyDate |
moveToYearTerminal()
Move to the terminal of the year.
|
HandyDate |
moveToYearTerminalAdded(int years)
Move to the terminal of the year after the year added.
|
HandyDate |
moveToYearTerminalFor(int year)
Move to the terminal of the year after the year moved-to.
|
protected HandyDate |
prepareCompareDate(Date date) |
protected HandyDate |
prepareCompareDate(LocalDate date) |
protected HandyDate |
prepareCompareDate(LocalDateTime date) |
protected void |
prepareDefaultBeginAttribute() |
protected void |
throwParseDateExpressionFailureException(String exp,
DfTypeUtil.ParseDateException e) |
HandyDate |
timeZone(TimeZone timeZone)
Set the time-zone to internal calendar.
|
protected Date |
toDate(LocalDate date) |
protected Date |
toDate(LocalDateTime date) |
protected Date[] |
toDateArray(LocalDate... dates) |
protected Date[] |
toDateArray(LocalDateTime... dates) |
String |
toDisp(String pattern)
Convert to the display string of the date for the default time-zone.
|
String |
toDisp(String pattern,
Locale locale)
Convert to the display string of the date for the default time-zone.
|
String |
toDisp(String pattern,
TimeZone timeZone)
Convert to the display string of the date for the specified time-zone.
|
String |
toDisp(String pattern,
TimeZone timeZone,
Locale locale)
Convert to the display string of the date for the specified time-zone.
|
protected LocalDate |
toLocalDate(Date date) |
protected LocalDateTime |
toLocalDateTime(Date date) |
String |
toString() |
protected final Calendar _cal
protected int _yearBeginMonth
protected int _monthBeginDay
protected int _dayBeginHour
protected int _weekBeginDay
public HandyDate(LocalDate localDate)
e.g. Date adjusted = new HandyDate(localDate).addDay(3).getDate();
localDate - The instance of the local date. (NotNull)public HandyDate(LocalDate localDate, TimeZone timeZone)
e.g. Date adjusted = new HandyDate(localDate, timeZone).addDay(3).getDate();
localDate - The instance of the local date. (NotNull)timeZone - The time-zone to parse as date and for internal calendar. (NotNull)public HandyDate(LocalDateTime localDateTime)
e.g. Date adjusted = new HandyDate(localDateTime).addDay(3).getDate();
localDateTime - The instance of the local date-time. (NotNull)public HandyDate(LocalDateTime localDateTime, TimeZone timeZone)
e.g. Date adjusted = new HandyDate(localDateTime, timeZone).addDay(3).getDate();
localDateTime - The instance of the local date-time. (NotNull)timeZone - The time-zone to parse as date and for internal calendar. (NotNull)public HandyDate(Date date)
e.g. Date adjusted = new HandyDate(date).addDay(3).getDate();The internal calendar uses default time-zone as default.
e.g. new HandyDate(date).timeZone(timeZone);
date - The instance of the date. (NotNull)public HandyDate(String exp)
e.g.
o new HandyDate("2001/01/01"): 2001-01-01 00:00:00.000
o new HandyDate("2001-01-01"): 2001-01-01 00:00:00.000
o new HandyDate("2001/01/01 12:34:56"): 2001-01-01 12:34:56.000
o new HandyDate("2001/01/01 12:34:56.798"): 2001-01-01 12:34:56.789
o new HandyDate("date 20010101"): 2001-01-01
exp - The string expression of the date. (NotNull, NotEmpty)ParseDateExpressionFailureException - When it fails to parse the expression.public HandyDate(String exp, TimeZone timeZone)
e.g.
TimeZone timeZone = ...
o new HandyDate("2001/01/01", timeZone): 2001-01-01 00:00:00.000
o new HandyDate("2001-01-01", timeZone): 2001-01-01 00:00:00.000
o new HandyDate("2001/01/01 12:34:56", timeZone): 2001-01-01 12:34:56.000
o new HandyDate("2001/01/01 12:34:56.798", timeZone): 2001-01-01 12:34:56.789
o new HandyDate("date 20010101", timeZone): 2001-01-01
exp - The string expression of the date. (NotNull, NotEmpty)timeZone - The time-zone to parse as date and for internal calendar. (NotNull)ParseDateExpressionFailureException - When it fails to parse the expression.public HandyDate(String exp, String pattern)
e.g.
new HandyDate("20010101", "yyyyMMdd"): 2001-01-01 00:00:00.000
exp - The string expression of the date. (NotNull, NotEmpty)pattern - The pattern to parse as date. (NotNull, NotEmpty)ParseDateExpressionFailureException - When it fails to parse the expression.public HandyDate(String exp, String pattern, Locale locale)
e.g.
Locale locale = ...
new HandyDate("20010101", "yyyyMMdd", locale): 2001-01-01 00:00:00.000
exp - The string expression of the date. (NotNull, NotEmpty)pattern - The pattern to parse as date. (NotNull, NotEmpty)locale - The locale to parse the date expression. (NotNull)ParseDateExpressionFailureException - When it fails to parse the expression.public HandyDate(String exp, TimeZone timeZone, String pattern, Locale locale)
e.g.
TimeZone timeZone = ...
Locale locale = ...
new HandyDate("20010101", "yyyyMMdd", timeZone, locale): 2001-01-01 00:00:00.000
exp - The string expression of the date. (NotNull, NotEmpty)pattern - The pattern to parse as date. (NotNull, NotEmpty)locale - The locale to parse the date expression. (NotNull)timeZone - The time-zone to parse as date and for internal calendar. (NotNull)ParseDateExpressionFailureException - When it fails to parse the expression.protected void assertConstructorArgNotNullAndNotEmpty(String name, Object value)
protected void prepareDefaultBeginAttribute()
protected void throwParseDateExpressionFailureException(String exp, DfTypeUtil.ParseDateException e)
public HandyDate timeZone(TimeZone timeZone)
e.g. new HandyDate(date).timeZone(timeZone);
timeZone - The time-zone used in internal calendar. (NotNull)public HandyDate addYear(int years)
years - The added count of year. (MinusAllowed: if minus, move back)public HandyDate addMonth(int months)
months - The added count of month. (MinusAllowed: if minus, move back)public HandyDate addDay(int days)
days - The added count of day. (MinusAllowed: if minus, move back)public HandyDate addHour(int hours)
hours - The added count of hour. (MinusAllowed: if minus, move back)public HandyDate addMinute(int minutes)
minutes - The added count of minute. (MinusAllowed: if minus, move back)public HandyDate addSecond(int seconds)
seconds - The added count of second. (MinusAllowed: if minus, move back)public HandyDate addMillisecond(int milliseconds)
milliseconds - The added count of millisecond. (MinusAllowed: if minus, move back)public HandyDate addWeek(int weeks)
weeks - The added count of week. (MinusAllowed: if minus, move back)public HandyDate moveToYear(int year)
e.g. moveToYear(2007): 2001/01/01 to 2007/01/01 moveToYear(-2007): 2001/01/01 to BC2007/01/01
year - The move-to year. (NotZero, MinusAllowed: if minus, means before Christ)public HandyDate moveToYearJust()
public HandyDate moveToYearJustAdded(int years)
years - The count added of year. (MinusAllowed: if minus, move back)public HandyDate moveToYearJustFor(int year)
year - The move-to year. (NotZero, MinusAllowed: if minus, means before Christ)public HandyDate moveToYearTerminal()
public HandyDate moveToYearTerminalAdded(int years)
years - The count added of year. (MinusAllowed: if minus, move back)public HandyDate moveToYearTerminalFor(int year)
year - The move-to year. (NotZero, MinusAllowed: if minus, means before Christ)public HandyDate moveToMonth(int month)
month - The move-to month. (NotZero, NotMinus)public HandyDate moveToMonthJust()
public HandyDate moveToMonthJustAdded(int months)
months - The count added of month. (MinusAllowed: if minus, move back)public HandyDate moveToMonthJustFor(int month)
month - The move-to month. (NotZero, NotMinus)public HandyDate moveToMonthTerminal()
public HandyDate moveToMonthTerminalAdded(int months)
months - The count added of month. (MinusAllowed: if minus, move back)public HandyDate moveToMonthTerminalFor(int month)
month - The move-to month. (NotZero, NotMinus)public HandyDate moveToMonthFirstWeekdayJust()
public HandyDate moveToMonthLastWeekdayTerminal()
public HandyDate moveToMonthFirstWeekendJust()
public HandyDate moveToMonthLastWeekendTerminal()
public HandyDate moveToDay(int day)
day - The move-to day. (NotZero, NotMinus)public HandyDate moveToDayJust()
public HandyDate moveToDayJustAdded(int days)
days - The count added of day. (MinusAllowed: if minus, move back)public HandyDate moveToDayJustFor(int day)
day - The move-to day. (NotZero, NotMinus)public HandyDate moveToDayTerminal()
public HandyDate moveToDayTerminalAdded(int days)
days - The count added of day. (MinusAllowed: if minus, move back)public HandyDate moveToDayTerminalFor(int day)
day - The move-to day. (NotZero, NotMinus)public HandyDate moveToHour(int hour)
e.g. 2011/11/27 17:00:00 moveToHour(23): 2007/11/27 23:00:00 moveToHour(26): 2007/11/28 02:00:00
hour - The move-to hour. (MinusAllowed)public HandyDate moveToHourJust()
public HandyDate moveToHourJustAdded(int hours)
hours - The count added of hour. (MinusAllowed: if minus, move back)public HandyDate moveToHourJustFor(int hour)
hour - The move-to hour. (NotMinus)public HandyDate moveToHourTerminal()
public HandyDate moveToHourTerminalAdded(int hours)
hours - The count added of hour. (MinusAllowed: if minus, move back)public HandyDate moveToHourTerminalFor(int hour)
hour - The move-to hour. (NotMinus)public HandyDate moveToHourJustNoon()
public HandyDate moveToMinute(int minute)
e.g. 2011/11/27 00:32:00 moveToMinute(12): to 2007/11/27 00:12:00 moveToMinute(48): to 2007/11/27 00:48:00
minute - The move-to minute. (MinusAllowed)public HandyDate moveToMinuteJust()
public HandyDate moveToMinuteJustAdded(int minutes)
public HandyDate moveToMinuteJustFor(int minute)
public HandyDate moveToMinuteTerminal()
public HandyDate moveToMinuteTerminalÅdded(int minutes)
public HandyDate moveToMinuteTerminalFor(int minute)
public HandyDate moveToSecond(int second)
e.g. 2011/11/27 00:32:00 moveToSecond(12): to 2007/11/27 00:00:12 moveToSecond(48): to 2007/11/27 00:00:48
second - The move-to second. (MinusAllowed)public HandyDate moveToSecondJust()
public HandyDate moveToSecondJustFor(int second)
public HandyDate moveToSecondJustAdded(int seconds)
public HandyDate moveToSecondTerminal()
public HandyDate moveToSecondTerminalAdded(int seconds)
public HandyDate moveToSecondTerminalFor(int second)
public HandyDate moveToMillisecond(int millisecond)
e.g. 2011/11/27 00:00:00.456 moveToMillisecond(123): to 2007/11/27 00:00:00.123 moveToMillisecond(877): to 2007/11/27 00:00:00.877
millisecond - The move-to millisecond. (MinusAllowed)public HandyDate moveToWeekJust()
e.g. 2011/11/30 12:34:56.789 (Wednesday) moveToWeekJust(): to 2011/11/27 00:00:00.000 beginWeek_DayOfWeek1st_Sunday().moveToWeekJust(): to 2011/11/27 00:00:00.000 beginWeek_DayOfWeek2nd_Monday().moveToWeekJust(): to 2011/11/28 00:00:00.000 beginWeek_DayOfWeek3rd_Tuesday().moveToWeekJust(): to 2011/11/29 00:00:00.000 beginWeek_DayOfWeek4th_Wednesday().moveToWeekJust(): to 2011/11/30 00:00:00.000 beginWeek_DayOfWeek5th_Thursday().moveToWeekJust(): to 2011/11/24 00:00:00.000
public HandyDate moveToWeekTerminal()
e.g. 2011/11/30 12:34:56.789 (Wednesday) moveToWeekJust(): to 2011/12/03 23:59:59.999 beginWeek_DayOfWeek1st_Sunday().moveToWeekJust(): to 2011/12/03 23:59:59.999 beginWeek_DayOfWeek2nd_Monday().moveToWeekJust(): to 2011/12/04 23:59:59.999 beginWeek_DayOfWeek3rd_Tuesday().moveToWeekJust(): to 2011/12/05 23:59:59.999 beginWeek_DayOfWeek4th_Wednesday().moveToWeekJust(): to 2011/12/06 23:59:59.999 beginWeek_DayOfWeek5th_Thursday().moveToWeekJust(): to 2011/11/30 23:59:59.999
public HandyDate moveToWeekOfMonth(int weekOfMonth)
public HandyDate moveToWeekOfYear(int weekOfYear)
public HandyDate moveToQuarterOfYearJust()
e.g. moveToQuarterOfYearJust(): 2011/02/27 12:34:56.789 to 2011/01/01 00:00:00.000 moveToQuarterOfYearJust(): 2011/03/27 12:34:56.789 to 2011/01/01 00:00:00.000 moveToQuarterOfYearJust(): 2011/04/27 12:34:56.789 to 2011/04/01 00:00:00.000 moveToQuarterOfYearJust(): 2011/08/27 12:34:56.789 to 2011/07/01 00:00:00.000 moveToQuarterOfYearJust(): 2011/11/27 12:34:56.789 to 2011/10/01 00:00:00.000
public HandyDate moveToQuarterOfYearJustAdded(int quarterOfYear)
public HandyDate moveToQuarterOfYearJustFor(int quarterOfYear)
public HandyDate moveToQuarterOfYearTerminal()
public HandyDate moveToQuarterOfYearTerminalAdded(int quarterOfYear)
public HandyDate moveToQuarterOfYearTerminalFor(int quarterOfYear)
public HandyDate moveToNextBusinessDay(BusinessDayDeterminer determiner)
determiner - The determiner of business day. (NotNull)public HandyDate moveToNextBusinessDay(int movedDays, BusinessDayDeterminer determiner)
movedDays - The moved count of business days. (NotMinus)determiner - The determiner of business day. (NotNull)public HandyDate clearTimeParts()
public HandyDate clearMinuteWithRear()
public HandyDate clearSecondWithRear()
public HandyDate clearMillisecond()
public boolean isMatch(Date date)
e.g. date: 2011/11/27 date.isMatch(2011/11/24): true date.isMatch(2011/11/27): false date.isMatch(2011/11/28): false
date - The comparison target date. (NotNull)public boolean isGreaterThan(LocalDate date)
e.g. date: 2011/11/27 date.isGreaterThan(2011/11/24): true date.isGreaterThan(2011/11/27): false date.isGreaterThan(2011/11/28): false
date - The comparison target local date. (NotNull)public boolean isGreaterThan(LocalDateTime date)
e.g. date: 2011/11/27 date.isGreaterThan(2011/11/24): true date.isGreaterThan(2011/11/27): false date.isGreaterThan(2011/11/28): false
date - The comparison target date-time. (NotNull)public boolean isGreaterThan(Date date)
e.g. date: 2011/11/27 date.isGreaterThan(2011/11/24): true date.isGreaterThan(2011/11/27): false date.isGreaterThan(2011/11/28): false
date - The comparison target date. (NotNull)public boolean isGreaterThanAll(LocalDate... dates)
e.g. date: 2011/11/27 date.isGreaterThanAll(2011/11/24, 2011/11/26): true date.isGreaterThanAll(2011/11/24, 2011/11/27): false date.isGreaterThanAll(2011/11/24, 2011/11/28): false date.isGreaterThanAll(2011/11/27, 2011/11/29): false date.isGreaterThanAll(2011/11/28, 2011/11/29): false
dates - The array of comparison target local date. (NotNull)public boolean isGreaterThanAll(LocalDateTime... dates)
e.g. date: 2011/11/27 date.isGreaterThanAll(2011/11/24, 2011/11/26): true date.isGreaterThanAll(2011/11/24, 2011/11/27): false date.isGreaterThanAll(2011/11/24, 2011/11/28): false date.isGreaterThanAll(2011/11/27, 2011/11/29): false date.isGreaterThanAll(2011/11/28, 2011/11/29): false
dates - The array of comparison target local date-time. (NotNull)public boolean isGreaterThanAll(Date... dates)
e.g. date: 2011/11/27 date.isGreaterThanAll(2011/11/24, 2011/11/26): true date.isGreaterThanAll(2011/11/24, 2011/11/27): false date.isGreaterThanAll(2011/11/24, 2011/11/28): false date.isGreaterThanAll(2011/11/27, 2011/11/29): false date.isGreaterThanAll(2011/11/28, 2011/11/29): false
dates - The array of comparison target date. (NotNull)public boolean isGreaterThanAny(LocalDate... dates)
e.g. date: 2011/11/27 date.isGreaterThanAny(2011/11/24, 2011/11/26): true date.isGreaterThanAny(2011/11/24, 2011/11/27): true date.isGreaterThanAny(2011/11/24, 2011/11/28): true date.isGreaterThanAny(2011/11/27, 2011/11/29): false date.isGreaterThanAny(2011/11/28, 2011/11/29): false
dates - The array of comparison target local date. (NotNull)public boolean isGreaterThanAny(LocalDateTime... dates)
e.g. date: 2011/11/27 date.isGreaterThanAny(2011/11/24, 2011/11/26): true date.isGreaterThanAny(2011/11/24, 2011/11/27): true date.isGreaterThanAny(2011/11/24, 2011/11/28): true date.isGreaterThanAny(2011/11/27, 2011/11/29): false date.isGreaterThanAny(2011/11/28, 2011/11/29): false
dates - The array of comparison target local date-time. (NotNull)public boolean isGreaterThanAny(Date... dates)
e.g. date: 2011/11/27 date.isGreaterThanAny(2011/11/24, 2011/11/26): true date.isGreaterThanAny(2011/11/24, 2011/11/27): true date.isGreaterThanAny(2011/11/24, 2011/11/28): true date.isGreaterThanAny(2011/11/27, 2011/11/29): false date.isGreaterThanAny(2011/11/28, 2011/11/29): false
dates - The array of comparison target date. (NotNull)protected LocalDateCompareCallback createGreaterThanLocalDateCompareCallback()
protected LocalDateTimeCompareCallback createGreaterThanLocalDateTimeCompareCallback()
protected DateCompareCallback createGreaterThanDateCompareCallback()
public boolean isGreaterEqual(LocalDate date)
e.g. date: 2011/11/27 date.isGreaterEqual(2011/11/24): true date.isGreaterEqual(2011/11/27): true date.isGreaterEqual(2011/11/28): false
date - The comparison target local date. (NotNull)public boolean isGreaterEqual(LocalDateTime date)
e.g. date: 2011/11/27 date.isGreaterEqual(2011/11/24): true date.isGreaterEqual(2011/11/27): true date.isGreaterEqual(2011/11/28): false
date - The comparison target local date-time. (NotNull)public boolean isGreaterEqual(Date date)
e.g. date: 2011/11/27 date.isGreaterEqual(2011/11/24): true date.isGreaterEqual(2011/11/27): true date.isGreaterEqual(2011/11/28): false
date - The comparison target date. (NotNull)public boolean isGreaterEqualAll(LocalDate... dates)
e.g. date: 2011/11/27 date.isGreaterEqualAll(2011/11/24, 2011/11/26): true date.isGreaterEqualAll(2011/11/24, 2011/11/27): true date.isGreaterEqualAll(2011/11/24, 2011/11/28): false date.isGreaterEqualAll(2011/11/27, 2011/11/29): false date.isGreaterEqualAll(2011/11/28, 2011/11/29): false
dates - The array of comparison target local date. (NotNull)public boolean isGreaterEqualAll(LocalDateTime... dates)
e.g. date: 2011/11/27 date.isGreaterEqualAll(2011/11/24, 2011/11/26): true date.isGreaterEqualAll(2011/11/24, 2011/11/27): true date.isGreaterEqualAll(2011/11/24, 2011/11/28): false date.isGreaterEqualAll(2011/11/27, 2011/11/29): false date.isGreaterEqualAll(2011/11/28, 2011/11/29): false
dates - The array of comparison target local date-time. (NotNull)public boolean isGreaterEqualAll(Date... dates)
e.g. date: 2011/11/27 date.isGreaterEqualAll(2011/11/24, 2011/11/26): true date.isGreaterEqualAll(2011/11/24, 2011/11/27): true date.isGreaterEqualAll(2011/11/24, 2011/11/28): false date.isGreaterEqualAll(2011/11/27, 2011/11/29): false date.isGreaterEqualAll(2011/11/28, 2011/11/29): false
dates - The array of comparison target date. (NotNull)public boolean isGreaterEqualAny(LocalDate... dates)
e.g. date: 2011/11/27 date.isGreaterEqualAny(2011/11/24, 2011/11/26): true date.isGreaterEqualAny(2011/11/24, 2011/11/27): true date.isGreaterEqualAny(2011/11/24, 2011/11/28): true date.isGreaterEqualAny(2011/11/27, 2011/11/29): true date.isGreaterEqualAny(2011/11/28, 2011/11/29): false
dates - The array of comparison target local date. (NotNull)public boolean isGreaterEqualAny(LocalDateTime... dates)
e.g. date: 2011/11/27 date.isGreaterEqualAny(2011/11/24, 2011/11/26): true date.isGreaterEqualAny(2011/11/24, 2011/11/27): true date.isGreaterEqualAny(2011/11/24, 2011/11/28): true date.isGreaterEqualAny(2011/11/27, 2011/11/29): true date.isGreaterEqualAny(2011/11/28, 2011/11/29): false
dates - The array of comparison target local date-time. (NotNull)public boolean isGreaterEqualAny(Date... dates)
e.g. date: 2011/11/27 date.isGreaterEqualAny(2011/11/24, 2011/11/26): true date.isGreaterEqualAny(2011/11/24, 2011/11/27): true date.isGreaterEqualAny(2011/11/24, 2011/11/28): true date.isGreaterEqualAny(2011/11/27, 2011/11/29): true date.isGreaterEqualAny(2011/11/28, 2011/11/29): false
dates - The array of comparison target date. (NotNull)protected LocalDateCompareCallback createGreaterEqualLocalDateCompareCallback()
protected LocalDateTimeCompareCallback createGreaterEqualLocalDateTimeCompareCallback()
protected DateCompareCallback createGreaterEqualDateCompareCallback()
public boolean isLessThan(LocalDate date)
e.g. date: 2011/11/27 date.isLessThan(2011/11/24): false date.isLessThan(2011/11/27): false date.isLessThan(2011/11/28): true
date - The comparison target local date. (NotNull)public boolean isLessThan(LocalDateTime date)
e.g. date: 2011/11/27 date.isLessThan(2011/11/24): false date.isLessThan(2011/11/27): false date.isLessThan(2011/11/28): true
date - The comparison target local date-time. (NotNull)public boolean isLessThan(Date date)
e.g. date: 2011/11/27 date.isLessThan(2011/11/24): false date.isLessThan(2011/11/27): false date.isLessThan(2011/11/28): true
date - The comparison target date. (NotNull)public boolean isLessThanAll(LocalDate... dates)
e.g. date: 2011/11/27 date.isLessThanAll(2011/11/24, 2011/11/26): false date.isLessThanAll(2011/11/24, 2011/11/27): false date.isLessThanAll(2011/11/24, 2011/11/28): false date.isLessThanAll(2011/11/27, 2011/11/29): false date.isLessThanAll(2011/11/28, 2011/11/29): true
dates - The array of comparison target local date. (NotNull)public boolean isLessThanAll(LocalDateTime... dates)
e.g. date: 2011/11/27 date.isLessThanAll(2011/11/24, 2011/11/26): false date.isLessThanAll(2011/11/24, 2011/11/27): false date.isLessThanAll(2011/11/24, 2011/11/28): false date.isLessThanAll(2011/11/27, 2011/11/29): false date.isLessThanAll(2011/11/28, 2011/11/29): true
dates - The array of comparison target local date-time. (NotNull)public boolean isLessThanAll(Date... dates)
e.g. date: 2011/11/27 date.isLessThanAll(2011/11/24, 2011/11/26): false date.isLessThanAll(2011/11/24, 2011/11/27): false date.isLessThanAll(2011/11/24, 2011/11/28): false date.isLessThanAll(2011/11/27, 2011/11/29): false date.isLessThanAll(2011/11/28, 2011/11/29): true
dates - The array of comparison target date. (NotNull)public boolean isLessThanAny(LocalDate... dates)
e.g. date: 2011/11/27 date.isLessThanAny(2011/11/24, 2011/11/26): false date.isLessThanAny(2011/11/24, 2011/11/27): false date.isLessThanAny(2011/11/24, 2011/11/28): true date.isLessThanAny(2011/11/27, 2011/11/29): true date.isLessThanAny(2011/11/28, 2011/11/29): true
dates - The array of comparison target local date. (NotNull)public boolean isLessThanAny(LocalDateTime... dates)
e.g. date: 2011/11/27 date.isLessThanAny(2011/11/24, 2011/11/26): false date.isLessThanAny(2011/11/24, 2011/11/27): false date.isLessThanAny(2011/11/24, 2011/11/28): true date.isLessThanAny(2011/11/27, 2011/11/29): true date.isLessThanAny(2011/11/28, 2011/11/29): true
dates - The array of comparison target local date-time. (NotNull)public boolean isLessThanAny(Date... dates)
e.g. date: 2011/11/27 date.isLessThanAny(2011/11/24, 2011/11/26): false date.isLessThanAny(2011/11/24, 2011/11/27): false date.isLessThanAny(2011/11/24, 2011/11/28): true date.isLessThanAny(2011/11/27, 2011/11/29): true date.isLessThanAny(2011/11/28, 2011/11/29): true
dates - The array of comparison target date. (NotNull)protected LocalDateCompareCallback createLessThanLocalDateCompareCallback()
protected LocalDateTimeCompareCallback createLessThanLocalDateTimeCompareCallback()
protected DateCompareCallback createLessThanDateCompareCallback()
public boolean isLessEqual(LocalDate date)
e.g. date: 2011/11/27 date.isLessEqual(2011/11/24): false date.isLessEqual(2011/11/27): true date.isLessEqual(2011/11/28): true
date - The comparison target local date. (NotNull)public boolean isLessEqual(LocalDateTime date)
e.g. date: 2011/11/27 date.isLessEqual(2011/11/24): false date.isLessEqual(2011/11/27): true date.isLessEqual(2011/11/28): true
date - The comparison target local date-time. (NotNull)public boolean isLessEqual(Date date)
e.g. date: 2011/11/27 date.isLessEqual(2011/11/24): false date.isLessEqual(2011/11/27): true date.isLessEqual(2011/11/28): true
date - The comparison target date. (NotNull)public boolean isLessEqualAll(LocalDate... dates)
e.g. date: 2011/11/27 date.isLessEqualAll(2011/11/24, 2011/11/26): false date.isLessEqualAll(2011/11/24, 2011/11/27): false date.isLessEqualAll(2011/11/24, 2011/11/28): false date.isLessEqualAll(2011/11/27, 2011/11/29): true date.isLessEqualAll(2011/11/28, 2011/11/29): true
dates - The array of comparison target local date. (NotNull)public boolean isLessEqualAll(LocalDateTime... dates)
e.g. date: 2011/11/27 date.isLessEqualAll(2011/11/24, 2011/11/26): false date.isLessEqualAll(2011/11/24, 2011/11/27): false date.isLessEqualAll(2011/11/24, 2011/11/28): false date.isLessEqualAll(2011/11/27, 2011/11/29): true date.isLessEqualAll(2011/11/28, 2011/11/29): true
dates - The array of comparison target local date-time. (NotNull)public boolean isLessEqualAll(Date... dates)
e.g. date: 2011/11/27 date.isLessEqualAll(2011/11/24, 2011/11/26): false date.isLessEqualAll(2011/11/24, 2011/11/27): false date.isLessEqualAll(2011/11/24, 2011/11/28): false date.isLessEqualAll(2011/11/27, 2011/11/29): true date.isLessEqualAll(2011/11/28, 2011/11/29): true
dates - The array of comparison target date. (NotNull)public boolean isLessEqualAny(LocalDate... dates)
e.g. date: 2011/11/27 date.isLessEqualAny(2011/11/24, 2011/11/26): false date.isLessEqualAny(2011/11/24, 2011/11/27): true date.isLessEqualAny(2011/11/24, 2011/11/28): true date.isLessEqualAny(2011/11/27, 2011/11/29): true date.isLessEqualAny(2011/11/28, 2011/11/29): true
dates - The array of comparison target local date. (NotNull)public boolean isLessEqualAny(LocalDateTime... dates)
e.g. date: 2011/11/27 date.isLessEqualAny(2011/11/24, 2011/11/26): false date.isLessEqualAny(2011/11/24, 2011/11/27): true date.isLessEqualAny(2011/11/24, 2011/11/28): true date.isLessEqualAny(2011/11/27, 2011/11/29): true date.isLessEqualAny(2011/11/28, 2011/11/29): true
dates - The array of comparison target local date-time. (NotNull)public boolean isLessEqualAny(Date... dates)
e.g. date: 2011/11/27 date.isLessEqualAny(2011/11/24, 2011/11/26): false date.isLessEqualAny(2011/11/24, 2011/11/27): true date.isLessEqualAny(2011/11/24, 2011/11/28): true date.isLessEqualAny(2011/11/27, 2011/11/29): true date.isLessEqualAny(2011/11/28, 2011/11/29): true
dates - The array of comparison target date. (NotNull)protected LocalDateCompareCallback createLessEqualLocalDateCompareCallback()
protected LocalDateTimeCompareCallback createLessEqualLocalDateTimeCompareCallback()
protected DateCompareCallback createLessEqualDateCompareCallback()
protected boolean doCompareAll(LocalDateCompareCallback callback, LocalDate... dates)
protected boolean doCompareAll(LocalDateTimeCompareCallback callback, LocalDateTime... dates)
protected boolean doCompareAll(DateCompareCallback callback, Date... dates)
protected boolean doCompareAny(LocalDateCompareCallback callback, LocalDate... dates)
protected boolean doCompareAny(LocalDateTimeCompareCallback callback, LocalDateTime... dates)
protected boolean doCompareAny(DateCompareCallback callback, Date... dates)
protected void assertCompareDateArrayValid(LocalDate[] dates)
protected void assertCompareDateArrayValid(LocalDateTime[] dates)
protected void assertCompareDateArrayValid(Date[] dates)
public boolean isYear(int year)
year - The integer of year.public boolean isYearSameAs(LocalDate date)
date - The local date to compare. (NotNull)public boolean isYearSameAs(LocalDateTime date)
date - The local date-time to compare. (NotNull)public boolean isYearSameAs(Date date)
date - The date to compare. (NotNull)public boolean isYearSameAs(HandyDate handyDate)
handyDate - The handy date to compare. (NotNull)public boolean isYear_AnnoDomini()
public boolean isYear_BeforeChrist()
public boolean isMonth(int month)
month - The integer of month. (1 origin)public boolean isMonth(Month month)
month - The enumeration of month. (NotNull, 1 origin)public boolean isMonthSameAs(LocalDate date)
date - The local date to compare. (NotNull)public boolean isMonthSameAs(LocalDateTime date)
date - The local date-time to compare. (NotNull)public boolean isMonthSameAs(Date date)
date - The date to compare. (NotNull)public boolean isMonthSameAs(HandyDate handyDate)
handyDate - The handy date to compare. (NotNull)public boolean isMonthOfYearSameAs(Date date)
date - The date to compare. (NotNull)public boolean isMonthOfYearSameAs(HandyDate handyDate)
handyDate - The handy date to compare. (NotNull)public boolean isMonth01_January()
public boolean isMonth02_February()
public boolean isMonth03_March()
public boolean isMonth04_April()
public boolean isMonth05_May()
public boolean isMonth06_June()
public boolean isMonth07_July()
public boolean isMonth08_August()
public boolean isMonth09_September()
public boolean isMonth10_October()
public boolean isMonth11_November()
public boolean isMonth12_December()
public boolean isDay(int day)
day - The integer of day.public boolean isDaySameAs(LocalDate date)
date - The local date to compare. (NotNull)public boolean isDaySameAs(LocalDateTime date)
date - The local date-time to compare. (NotNull)public boolean isDaySameAs(Date date)
date - The date to compare. (NotNull)public boolean isDaySameAs(HandyDate handyDate)
handyDate - The handy date to compare. (NotNull)public boolean isDayOfDateSameAs(LocalDate date)
date - The local date to compare. (NotNull)public boolean isDayOfDateSameAs(LocalDateTime date)
date - The local date-time to compare. (NotNull)public boolean isDayOfDateSameAs(Date date)
date - The date to compare. (NotNull)public boolean isDayOfDateSameAs(HandyDate handyDate)
handyDate - The handy date to compare. (NotNull)public boolean isDay_MonthFirstDay()
e.g. 2011/11/01: true 2011/11/02: false 2011/11/30: false
public boolean isDay_MonthLastDay()
e.g. 2011/11/01: false 2011/11/02: false 2011/11/30: true 2011/12/30: false 2011/12/31: true
public boolean isHour(int hour)
hour - The integer of hour(0-23).public boolean isHourSameAs(LocalDateTime date)
date - The local date-time to compare. (NotNull)public boolean isHourSameAs(Date date)
date - The date to compare. (NotNull)public boolean isHourSameAs(HandyDate handyDate)
handyDate - The handy date to compare. (NotNull)public boolean isHourOfDateSameAs(Date date)
date - The date to compare. (NotNull)public boolean isHourOfDateSameAs(HandyDate handyDate)
handyDate - The handy date to compare. (NotNull)public boolean isMinute(int minute)
minute - The integer of minute(0-59).public boolean isMinuteSameAs(LocalDateTime date)
date - The local date-time to compare. (NotNull)public boolean isMinuteSameAs(Date date)
date - The date to compare. (NotNull)public boolean isMinuteSameAs(HandyDate handyDate)
handyDate - The handy date to compare. (NotNull)public boolean isMinuteOfDateSameAs(Date date)
date - The date to compare. (NotNull)public boolean isMinuteOfDateSameAs(HandyDate handyDate)
handyDate - The handy date to compare. (NotNull)public boolean isSecond(int second)
second - The integer of minute(0-59).public boolean isSecondSameAs(LocalDateTime date)
date - The local date-time to compare. (NotNull)public boolean isSecondSameAs(Date date)
date - The date to compare. (NotNull)public boolean isSecondSameAs(HandyDate handyDate)
handyDate - The handy date to compare. (NotNull)public boolean isSecondOfDateSameAs(Date date)
date - The date to compare. (NotNull)public boolean isSecondOfDateSameAs(HandyDate handyDate)
handyDate - The handy date to compare. (NotNull)public boolean isWeek_DayOfWeek1st_Sunday()
public boolean isWeek_DayOfWeek2nd_Monday()
public boolean isWeek_DayOfWeek3rd_Tuesday()
public boolean isWeek_DayOfWeek4th_Wednesday()
public boolean isWeek_DayOfWeek5th_Thursday()
public boolean isWeek_DayOfWeek6th_Friday()
public boolean isWeek_DayOfWeek7th_Saturday()
public boolean isWeek_DayOfWeekWeekday()
public boolean isWeek_DayOfWeekWeekend()
public int calculateCalendarDistanceYears(LocalDate date)
e.g. 2013/03/03(this) and 2014/03/03(argument): 1 2014/03/03(this) and 2012/03/03(argument): -2 2013/12/31(this) and 2014/01/01(argument): 1 *attention
date - The local date to calculate. (NotNull)public int calculateCalendarDistanceYears(LocalDateTime date)
e.g. 2013/03/03(this) and 2014/03/03(argument): 1 2014/03/03(this) and 2012/03/03(argument): -2 2013/12/31(this) and 2014/01/01(argument): 1 *attention
date - The local date-time to calculate. (NotNull)public int calculateCalendarDistanceYears(Date date)
e.g. 2013/03/03(this) and 2014/03/03(argument): 1 2014/03/03(this) and 2012/03/03(argument): -2 2013/12/31(this) and 2014/01/01(argument): 1 *attention
date - The date to calculate. (NotNull)protected int doCalculateCalendarDistanceYears(Date date)
public int calculateCalendarDistanceMonths(LocalDate date)
e.g. 2013/03/03(this) and 2013/04/03(argument): 1 2013/03/03(this) and 2013/01/03(argument): -2 2013/03/03(this) and 2014/01/03(argument): 10 2013/03/31(this) and 2013/04/01(argument): 1 *attention
date - The local date to calculate. (NotNull)public int calculateCalendarDistanceMonths(LocalDateTime date)
e.g. 2013/03/03(this) and 2013/04/03(argument): 1 2013/03/03(this) and 2013/01/03(argument): -2 2013/03/03(this) and 2014/01/03(argument): 10 2013/03/31(this) and 2013/04/01(argument): 1 *attention
date - The local date-time to calculate. (NotNull)public int calculateCalendarDistanceMonths(Date date)
e.g. 2013/03/03(this) and 2013/04/03(argument): 1 2013/03/03(this) and 2013/01/03(argument): -2 2013/03/03(this) and 2014/01/03(argument): 10 2013/03/31(this) and 2013/04/01(argument): 1 *attention
date - The date to calculate. (NotNull)protected int doCalculateCalendarDistanceMonths(Date date)
public int calculateCalendarDistanceDays(LocalDate date)
e.g. 2013/03/03(this) and 2013/03/07(argument): 4 2013/03/03(this) and 2013/04/07(argument): 35 2013/04/07(this) and 2013/03/03(argument): -35 2013/03/03(this) and 2014/03/03(argument): 365 2013/03/03 23:59:59(this) and 2013/03/07 00:00:00(argument): 4 *attention
date - The local date to calculate. (NotNull)public int calculateCalendarDistanceDays(LocalDateTime date)
e.g. 2013/03/03(this) and 2013/03/07(argument): 4 2013/03/03(this) and 2013/04/07(argument): 35 2013/04/07(this) and 2013/03/03(argument): -35 2013/03/03(this) and 2014/03/03(argument): 365 2013/03/03 23:59:59(this) and 2013/03/07 00:00:00(argument): 4 *attention
date - The local date-time to calculate. (NotNull)public int calculateCalendarDistanceDays(Date date)
e.g. 2013/03/03(this) and 2013/03/07(argument): 4 2013/03/03(this) and 2013/04/07(argument): 35 2013/04/07(this) and 2013/03/03(argument): -35 2013/03/03(this) and 2014/03/03(argument): 365 2013/03/03 23:59:59(this) and 2013/03/07 00:00:00(argument): 4 *attention
date - The date to calculate. (NotNull)protected int doCalculateCalendarDistanceDays(Date date)
public int calculateCalendarDistanceHours(LocalDate date)
e.g. 2013/03/03 07:00:00(this) and 2013/03/03 12:34:56(argument): 5 2013/03/03 12:00:00(this) and 2013/03/03 07:34:56(argument): -5 2013/03/03 07:00:00(this) and 2013/03/04 14:34:56(argument): 31 2013/03/03 07:59:59(this) and 2013/03/03 09:00:00(argument): 2 *attention
date - The local date to calculate. (NotNull)public int calculateCalendarDistanceHours(LocalDateTime date)
e.g. 2013/03/03 07:00:00(this) and 2013/03/03 12:34:56(argument): 5 2013/03/03 12:00:00(this) and 2013/03/03 07:34:56(argument): -5 2013/03/03 07:00:00(this) and 2013/03/04 14:34:56(argument): 31 2013/03/03 07:59:59(this) and 2013/03/03 09:00:00(argument): 2 *attention
date - The local date-time to calculate. (NotNull)public int calculateCalendarDistanceHours(Date date)
e.g. 2013/03/03 07:00:00(this) and 2013/03/03 12:34:56(argument): 5 2013/03/03 12:00:00(this) and 2013/03/03 07:34:56(argument): -5 2013/03/03 07:00:00(this) and 2013/03/04 14:34:56(argument): 31 2013/03/03 07:59:59(this) and 2013/03/03 09:00:00(argument): 2 *attention
date - The date to calculate. (NotNull)protected int doCalculateCalendarDistanceHours(Date date)
public long calculateCalendarDistanceMinutes(LocalDate date)
e.g. 2013/03/03 07:34:00(this) and 2013/03/03 07:57:00(argument): 23 2013/03/03 07:34:00(this) and 2013/03/03 12:34:00(argument): 300 2013/03/03 07:34:00(this) and 2013/03/03 07:22:56(argument): -12 2013/03/03 07:34:59(this) and 2013/03/03 07:36:00(argument): 2 *attention
date - The local date to calculate. (NotNull)public long calculateCalendarDistanceMinutes(LocalDateTime date)
e.g. 2013/03/03 07:34:00(this) and 2013/03/03 07:57:00(argument): 23 2013/03/03 07:34:00(this) and 2013/03/03 12:34:00(argument): 300 2013/03/03 07:34:00(this) and 2013/03/03 07:22:56(argument): -12 2013/03/03 07:34:59(this) and 2013/03/03 07:36:00(argument): 2 *attention
date - The local date-time to calculate. (NotNull)public long calculateCalendarDistanceMinutes(Date date)
e.g. 2013/03/03 07:34:00(this) and 2013/03/03 07:57:00(argument): 23 2013/03/03 07:34:00(this) and 2013/03/03 12:34:00(argument): 300 2013/03/03 07:34:00(this) and 2013/03/03 07:22:56(argument): -12 2013/03/03 07:34:59(this) and 2013/03/03 07:36:00(argument): 2 *attention
date - The date to calculate. (NotNull)protected long doCalculateCalendarDistanceMinutes(Date date)
public long calculateCalendarDistanceSeconds(LocalDate date)
e.g. 2013/03/03 07:34:22(this) and 2013/03/03 07:34:37(argument): 15 2013/03/03 07:34:22(this) and 2013/03/03 07:35:24(argument): 62 2013/03/03 07:34:43(this) and 2013/03/03 07:34:22(argument): -21 2013/03/03 07:34:56.999(this) and 2013/03/03 07:34.58.000(argument): 2 *attention
date - The local date to calculate. (NotNull)public long calculateCalendarDistanceSeconds(LocalDateTime date)
e.g. 2013/03/03 07:34:22(this) and 2013/03/03 07:34:37(argument): 15 2013/03/03 07:34:22(this) and 2013/03/03 07:35:24(argument): 62 2013/03/03 07:34:43(this) and 2013/03/03 07:34:22(argument): -21 2013/03/03 07:34:56.999(this) and 2013/03/03 07:34.58.000(argument): 2 *attention
date - The local date-time to calculate. (NotNull)public long calculateCalendarDistanceSeconds(Date date)
e.g. 2013/03/03 07:34:22(this) and 2013/03/03 07:34:37(argument): 15 2013/03/03 07:34:22(this) and 2013/03/03 07:35:24(argument): 62 2013/03/03 07:34:43(this) and 2013/03/03 07:34:22(argument): -21 2013/03/03 07:34:56.999(this) and 2013/03/03 07:34.58.000(argument): 2 *attention
date - The date to calculate. (NotNull)protected long doCalculateCalendarDistanceSeconds(Date date)
public long calculateCalendarDistanceMilliseconds(Date date)
e.g. 2013/03/03 07:34:12.123(this) and 2013/03/03 07:34:12.163(argument): 40 2013/03/03 07:34:12.123(this) and 2013/03/03 07:34:15.163(argument): 3040
date - The date to calculate. (NotNull)public int calculateMeasuredDistanceYears(LocalDate date)
e.g. 2013/12/31(this) and 2014/01/01(argument): 0 2013/12/31(this) and 2014/07/15(argument): 1 2014/01/01(this) and 2015/04/01(argument): 1 2014/01/01(this) and 2015/09/01(argument): 2 2013/03/07(this) and 7099/10/07(argument): 5087
date - The local date to calculate. (NotNull)public int calculateMeasuredDistanceYears(LocalDateTime date)
e.g. 2013/12/31(this) and 2014/01/01(argument): 0 2013/12/31(this) and 2014/07/15(argument): 1 2014/01/01(this) and 2015/04/01(argument): 1 2014/01/01(this) and 2015/09/01(argument): 2 2013/03/07(this) and 7099/10/07(argument): 5087
date - The local date-time to calculate. (NotNull)public int calculateMeasuredDistanceYears(Date date)
e.g. 2013/12/31(this) and 2014/01/01(argument): 0 2013/12/31(this) and 2014/07/15(argument): 1 2014/01/01(this) and 2015/04/01(argument): 1 2014/01/01(this) and 2015/09/01(argument): 2 2013/03/07(this) and 7099/10/07(argument): 5087
date - The date to calculate. (NotNull)protected int doCalculateMeasuredDistanceYears(Date date)
public int calculateMeasuredDistanceMonths(LocalDate date)
e.g. 2013/03/20(this) and 2013/04/03(argument): 0 2013/03/07(this) and 2013/04/03(argument): 1 2013/03/01(this) and 2013/01/28(argument): 2 2013/03/01(this) and 2013/08/01(argument): 5 2013/03/01(this) and 2013/08/31(argument): 6 2013/03/01(this) and 2033/08/31(argument): 246 2013/01/01(this) and 3013/01/01(argument): 12000 2013/01/01(this) and 7013/01/01(argument): 60000
date - The local date to calculate. (NotNull)public int calculateMeasuredDistanceMonths(LocalDateTime date)
e.g. 2013/03/20(this) and 2013/04/03(argument): 0 2013/03/07(this) and 2013/04/03(argument): 1 2013/03/01(this) and 2013/01/28(argument): 2 2013/03/01(this) and 2013/08/01(argument): 5 2013/03/01(this) and 2013/08/31(argument): 6 2013/03/01(this) and 2033/08/31(argument): 246 2013/01/01(this) and 3013/01/01(argument): 12000 2013/01/01(this) and 7013/01/01(argument): 60000
date - The local date-time to calculate. (NotNull)public int calculateMeasuredDistanceMonths(Date date)
e.g. 2013/03/20(this) and 2013/04/03(argument): 0 2013/03/07(this) and 2013/04/03(argument): 1 2013/03/01(this) and 2013/01/28(argument): 2 2013/03/01(this) and 2013/08/01(argument): 5 2013/03/01(this) and 2013/08/31(argument): 6 2013/03/01(this) and 2033/08/31(argument): 246 2013/01/01(this) and 3013/01/01(argument): 12000 2013/01/01(this) and 7013/01/01(argument): 60000
date - The date to calculate. (NotNull)protected int doCalculateMeasuredDistanceMonths(Date date)
public int calculateMeasuredDistanceDays(LocalDate date)
e.g. 2013/04/01 23:59:59(this) and 2013/04/02 00:00:00(argument): 0 2013/04/01 10:00:00(this) and 2013/04/02 23:59:59(argument): 2
date - The local date to calculate. (NotNull)public int calculateMeasuredDistanceDays(LocalDateTime date)
e.g. 2013/04/01 23:59:59(this) and 2013/04/02 00:00:00(argument): 0 2013/04/01 10:00:00(this) and 2013/04/02 23:59:59(argument): 2
date - The local date-time to calculate. (NotNull)public int calculateMeasuredDistanceDays(Date date)
e.g. 2013/04/01 23:59:59(this) and 2013/04/02 00:00:00(argument): 0 2013/04/01 10:00:00(this) and 2013/04/02 23:59:59(argument): 2
date - The date to calculate. (NotNull)protected int doCalculateMeasuredDistanceDays(Date date)
public int calculateMeasuredDistanceHours(LocalDate date)
e.g. 2013/12/31 12:34:56(this) and 2013/12/31 13:00:00(argument): 0 2013/12/31 12:34:56(this) and 2013/12/31 14:10:00(argument): 2
date - The local date to calculate. (NotNull)public int calculateMeasuredDistanceHours(LocalDateTime date)
e.g. 2013/12/31 12:34:56(this) and 2013/12/31 13:00:00(argument): 0 2013/12/31 12:34:56(this) and 2013/12/31 14:10:00(argument): 2
date - The local date-time to calculate. (NotNull)public int calculateMeasuredDistanceHours(Date date)
e.g. 2013/12/31 12:34:56(this) and 2013/12/31 13:00:00(argument): 0 2013/12/31 12:34:56(this) and 2013/12/31 14:10:00(argument): 2
date - The date to calculate. (NotNull)protected int doCalculateMeasuredDistanceHours(Date date)
public long calculateMeasuredDistanceMinutes(LocalDate date)
e.g. 2013/12/31 12:34:56(this) and 2013/12/31 12:35:00(argument): 0 2013/12/31 12:34:56(this) and 2013/12/31 12:37:00(argument): 2
date - The local date to calculate. (NotNull)public long calculateMeasuredDistanceMinutes(LocalDateTime date)
e.g. 2013/12/31 12:34:56(this) and 2013/12/31 12:35:00(argument): 0 2013/12/31 12:34:56(this) and 2013/12/31 12:37:00(argument): 2
date - The local date-time to calculate. (NotNull)public long calculateMeasuredDistanceMinutes(Date date)
e.g. 2013/12/31 12:34:56(this) and 2013/12/31 12:35:00(argument): 0 2013/12/31 12:34:56(this) and 2013/12/31 12:37:00(argument): 2
date - The date to calculate. (NotNull)protected long doCalculateMeasuredDistanceMinutes(Date date)
public long calculateMeasuredDistanceSeconds(LocalDate date)
e.g. 2013/12/31 12:34:56.789(this) and 2013/12/31 12:34:57.000(argument): 0 2013/12/31 12:34:56.789(this) and 2013/12/31 12:34:58.333(argument): 2
date - The local date to calculate. (NotNull)public long calculateMeasuredDistanceSeconds(LocalDateTime date)
e.g. 2013/12/31 12:34:56.789(this) and 2013/12/31 12:34:57.000(argument): 0 2013/12/31 12:34:56.789(this) and 2013/12/31 12:34:58.333(argument): 2
date - The local date-time to calculate. (NotNull)public long calculateMeasuredDistanceSeconds(Date date)
e.g. 2013/12/31 12:34:56.789(this) and 2013/12/31 12:34:57.000(argument): 0 2013/12/31 12:34:56.789(this) and 2013/12/31 12:34:58.333(argument): 2
date - The date to calculate. (NotNull)protected long doCalculateMeasuredDistanceSeconds(Date date)
public int calculateSizeBusinessDays(LocalDate date, BusinessDayDeterminer determiner)
e.g. when Sunday and Saturday is false 2013/03/03(this) and 2013/03/07(argument): 4 2013/03/07(this) and 2013/03/13(argument): 5 2013/03/07(this) and 2013/03/16(argument): 7 2013/03/16(this) and 2013/03/07(argument): 7
date - The date to calculate. (NotNull)determiner - The determiner of business day. (NotNull)public int calculateSizeBusinessDays(LocalDateTime date, BusinessDayDeterminer determiner)
e.g. when Sunday and Saturday is false 2013/03/03(this) and 2013/03/07(argument): 4 2013/03/07(this) and 2013/03/13(argument): 5 2013/03/07(this) and 2013/03/16(argument): 7 2013/03/16(this) and 2013/03/07(argument): 7
date - The local date-time to calculate. (NotNull)determiner - The determiner of business day. (NotNull)public int calculateSizeBusinessDays(Date date, BusinessDayDeterminer determiner)
e.g. when Sunday and Saturday is false 2013/03/03(this) and 2013/03/07(argument): 4 2013/03/07(this) and 2013/03/13(argument): 5 2013/03/07(this) and 2013/03/16(argument): 7 2013/03/16(this) and 2013/03/07(argument): 7
date - The local date to calculate. (NotNull)determiner - The determiner of business day. (NotNull)protected int doCalculateSizeBusinessDays(Date date, BusinessDayDeterminer determiner)
public int calculateSizeWeekdays(LocalDate date)
e.g. 2013/03/03 is Sunday 2013/03/03(this) and 2013/03/07(argument): 4 2013/03/07(this) and 2013/03/13(argument): 5 2013/03/07(this) and 2013/03/16(argument): 7 2013/03/16(this) and 2013/03/07(argument): 7
date - The local date to calculate. (NotNull)public int calculateSizeWeekdays(LocalDateTime date)
e.g. 2013/03/03 is Sunday 2013/03/03(this) and 2013/03/07(argument): 4 2013/03/07(this) and 2013/03/13(argument): 5 2013/03/07(this) and 2013/03/16(argument): 7 2013/03/16(this) and 2013/03/07(argument): 7
date - The local date-time to calculate. (NotNull)public int calculateSizeWeekdays(Date date)
e.g. 2013/03/03 is Sunday 2013/03/03(this) and 2013/03/07(argument): 4 2013/03/07(this) and 2013/03/13(argument): 5 2013/03/07(this) and 2013/03/16(argument): 7 2013/03/16(this) and 2013/03/07(argument): 7
date - The date to calculate. (NotNull)protected int doCalculateSizeWeekdays(Date date)
public int calculateSizeWeekendDays(LocalDate date)
e.g. 2013/03/03 is Sunday 2013/03/03(this) and 2013/03/07(argument): 1 2013/03/07(this) and 2013/03/13(argument): 2
date - The local date to calculate. (NotNull)public int calculateSizeWeekendDays(LocalDateTime date)
e.g. 2013/03/03 is Sunday 2013/03/03(this) and 2013/03/07(argument): 1 2013/03/07(this) and 2013/03/13(argument): 2
date - The local date-time to calculate. (NotNull)public int calculateSizeWeekendDays(Date date)
e.g. 2013/03/03 is Sunday 2013/03/03(this) and 2013/03/07(argument): 1 2013/03/07(this) and 2013/03/13(argument): 2
date - The date to calculate. (NotNull)protected int doCalculateSizeWeekendDays(Date date)
public LocalDate chooseNearestDate(LocalDate... dates)
e.g. date: 2011/11/27 date.chooseNearestDate(2011/11/24, 2011/11/26): 2011/11/26 date.chooseNearestDate(2011/11/25, 2011/11/28): 2011/11/28
dates - The array of comparison target local date. (NotNull)public LocalDateTime chooseNearestDate(LocalDateTime... dates)
e.g. date: 2011/11/27 date.chooseNearestDate(2011/11/24, 2011/11/26): 2011/11/26 date.chooseNearestDate(2011/11/25, 2011/11/28): 2011/11/28
dates - The array of comparison target local date-time. (NotNull)public Date chooseNearestDate(Date... dates)
e.g. date: 2011/11/27 date.chooseNearestDate(2011/11/24, 2011/11/26): 2011/11/26 date.chooseNearestDate(2011/11/25, 2011/11/28): 2011/11/28
dates - The array of comparison target date. (NotNull)public LocalDate chooseNearestFutureDate(LocalDate... dates)
e.g. date: 2011/11/27 date.chooseNearestFutureDate(2011/11/29, 2011/11/28): 2011/11/28 date.chooseNearestFutureDate(2011/11/26, 2011/11/29): 2011/11/29
dates - The array of comparison target local date. (NotNull)public LocalDateTime chooseNearestFutureDate(LocalDateTime... dates)
e.g. date: 2011/11/27 date.chooseNearestFutureDate(2011/11/29, 2011/11/28): 2011/11/28 date.chooseNearestFutureDate(2011/11/26, 2011/11/29): 2011/11/29
dates - The array of comparison target local date-time. (NotNull)public Date chooseNearestFutureDate(Date... dates)
e.g. date: 2011/11/27 date.chooseNearestFutureDate(2011/11/29, 2011/11/28): 2011/11/28 date.chooseNearestFutureDate(2011/11/26, 2011/11/29): 2011/11/29
dates - The array of comparison target date. (NotNull)public LocalDate chooseNearestPastDate(LocalDate... dates)
e.g. date: 2011/11/27 date.chooseNearestPastDate(2011/11/26, 2011/11/25): 2011/11/26 date.chooseNearestPastDate(2011/11/25, 2011/11/28): 2011/11/25
dates - The array of comparison target local date. (NotNull)public LocalDateTime chooseNearestPastDate(LocalDateTime... dates)
e.g. date: 2011/11/27 date.chooseNearestPastDate(2011/11/26, 2011/11/25): 2011/11/26 date.chooseNearestPastDate(2011/11/25, 2011/11/28): 2011/11/25
dates - The array of comparison target local date-time. (NotNull)public Date chooseNearestPastDate(Date... dates)
e.g. date: 2011/11/27 date.chooseNearestPastDate(2011/11/26, 2011/11/25): 2011/11/26 date.chooseNearestPastDate(2011/11/25, 2011/11/28): 2011/11/25
dates - The array of comparison target date. (NotNull)public HandyDate beginYear_Month(LocalDate yearBeginMonth)
e.g. beginYear_Month(toLocalDate("2001/04/01"))
year is from 4th month to 3rd month of next year
(the 2011 year means 2011/04/01 to 2012/03/31)
if the date is 2011/01/01, moveToYearJust() moves it to 2011/04/01
(means the date moves to just beginning of the 2011 year)
yearBeginMonth - The local date that has the month of year-begin. (NotNull)public HandyDate beginYear_Month(LocalDateTime yearBeginMonth)
e.g. beginYear_Month(toLocalDate("2001/04/01"))
year is from 4th month to 3rd month of next year
(the 2011 year means 2011/04/01 to 2012/03/31)
if the date is 2011/01/01, moveToYearJust() moves it to 2011/04/01
(means the date moves to just beginning of the 2011 year)
yearBeginMonth - The local date-time that has the month of year-begin. (NotNull)public HandyDate beginYear_Month(Date yearBeginMonth)
e.g. beginYear_Month(toDate("2001/04/01"))
year is from 4th month to 3rd month of next year
(the 2011 year means 2011/04/01 to 2012/03/31)
if the date is 2011/01/01, moveToYearJust() moves it to 2011/04/01
(means the date moves to just beginning of the 2011 year)
yearBeginMonth - The date that has the month of year-begin. (NotNull)protected void doBeginYear_Month(Date yearBeginMonth)
public HandyDate beginYear_Month(int yearBeginMonth)
e.g. beginYear_Month(4) year is from 4th month to 3rd month of next year (the 2011 year means 2011/04/01 to 2012/03/31) if the date is 2011/01/01, moveToYearJust() moves it to 2011/04/01 (means the date moves to just beginning of the 2011 year)
yearBeginMonth - The month for year-begin.public HandyDate beginYear_Month01_January()
public HandyDate beginYear_Month02_February()
public HandyDate beginYear_Month03_March()
public HandyDate beginYear_Month04_April()
public HandyDate beginYear_Month05_May()
public HandyDate beginYear_Month06_June()
public HandyDate beginYear_Month07_July()
public HandyDate beginYear_Month08_August()
public HandyDate beginYear_Month09_September()
public HandyDate beginYear_Month10_October()
public HandyDate beginYear_Month11_November()
public HandyDate beginYear_Month12_December()
public HandyDate beginYear_PreviousMonth(int yearBeginMonth)
e.g. beginYear_PreviousMonth(11) year is from 11th month of previous year to 10th month of this year (the 2011 year means 2010/11/01 to 2011/10/31) if the date is 2011/01/01, moveToYearJust() moves it to 2010/11/01 (means the date moves to just beginning of the 2011 year)
yearBeginMonth - The month of previous year for year-begin.public HandyDate beginMonth_Day(LocalDate monthBeginDay)
e.g. beginMonth_Day(toLocalDate("2001/01/03"))
month is from 3 day to 2 day of next month
(the 2011/11 means 2011/11/03 to 2011/12/02)
if the date is 2011/11/01, moveToMonthJust() moves it to 2011/11/03
(means the date moves to just beginning of 2011/11)
monthBeginDay - The local date that has the day of month-begin. (NotNull)public HandyDate beginMonth_Day(LocalDateTime monthBeginDay)
e.g. beginMonth_Day(toLocalDateTime("2001/01/03"))
month is from 3 day to 2 day of next month
(the 2011/11 means 2011/11/03 to 2011/12/02)
if the date is 2011/11/01, moveToMonthJust() moves it to 2011/11/03
(means the date moves to just beginning of 2011/11)
monthBeginDay - The local date-time that has the day of month-begin. (NotNull)public HandyDate beginMonth_Day(Date monthBeginDay)
e.g. beginMonth_Day(toDate("2001/01/03"))
month is from 3 day to 2 day of next month
(the 2011/11 means 2011/11/03 to 2011/12/02)
if the date is 2011/11/01, moveToMonthJust() moves it to 2011/11/03
(means the date moves to just beginning of 2011/11)
monthBeginDay - The date that has the day of month-begin. (NotNull)protected void doBeginMonth_Day(Date monthBeginDay)
public HandyDate beginMonth_Day(int monthBeginDay)
e.g. beginMonth_Day(3) month is from 3 day to 2 day of next month (the 2011/11 means 2011/11/03 to 2011/12/02) if the date is 2011/11/01, moveToMonthJust() moves it to 2011/11/03 (means the date moves to just beginning of 2011/11)
monthBeginDay - The day for month-begin.public HandyDate beginMonth_PreviousDay(int monthBeginDay)
e.g. beginMonth_PreviousDay(25) month is from 25 day of previous year to 24 day of this month (the 2011/11 means 2011/10/25 to 2011/11/24) if the date is 2011/11/01, moveToMonthJust() moves it to 2011/10/25 (means the date moves to just beginning of 2011/11)
monthBeginDay - The day of previous month for month-begin.public HandyDate beginDay_Hour(LocalDate dayBeginHour)
e.g. beginDay_Hour(toLocalDate("2001/01/01 06:00:00"))
day is from 06h to 05h of next day
(the 2011/11/27 means 2011/11/27 06h to 2011/11/28 05h)
if the date is 2011/11/27 00:00:00, moveToDayJust() moves it to 2011/11/27 06:00:00
(means the date moves to just beginning of 2011/11/27)
dayBeginHour - The local date that has the hour of day-begin. (NotNull)public HandyDate beginDay_Hour(LocalDateTime dayBeginHour)
e.g. beginDay_Hour(toLocalDateTime("2001/01/01 06:00:00"))
day is from 06h to 05h of next day
(the 2011/11/27 means 2011/11/27 06h to 2011/11/28 05h)
if the date is 2011/11/27 00:00:00, moveToDayJust() moves it to 2011/11/27 06:00:00
(means the date moves to just beginning of 2011/11/27)
dayBeginHour - The local date-time that has the hour of day-begin. (NotNull)public HandyDate beginDay_Hour(Date dayBeginHour)
e.g. beginDay_Hour(toDate("2001/01/01 06:00:00"))
day is from 06h to 05h of next day
(the 2011/11/27 means 2011/11/27 06h to 2011/11/28 05h)
if the date is 2011/11/27 00:00:00, moveToDayJust() moves it to 2011/11/27 06:00:00
(means the date moves to just beginning of 2011/11/27)
dayBeginHour - The date that has the hour of day-begin. (NotNull)protected void doBeginDay_Hour(Date dayBeginHour)
public HandyDate beginDay_Hour(int dayBeginHour)
e.g. beginDay_Hour(6) day is from 06h to 05h of next day (the 2011/11/27 means 2011/11/27 06h to 2011/11/28 05h) if the date is 2011/11/27 00:00:00, moveToDayJust() moves it to 2011/11/27 06:00:00 (means the date moves to just beginning of 2011/11/27)
dayBeginHour - The day of day-begin.public HandyDate beginDay_PreviousHour(int dayBeginHour)
e.g. beginDay_PreviousHour(22) day is from 22h of previous day to 21h of this day (the 2011/11/27 means 2011/11/26 22h to 2011/11/27 21h) if the date is 2011/11/27 00:00:00, moveToDayJust() moves it to 2011/11/26 22:00:00 (means the date moves to just beginning of 2011/11/27)
dayBeginHour - The day of day-begin.public HandyDate beginWeek_DayOfWeek(LocalDate weekBeginDayOfWeek)
e.g. beginWeek_DayOfWeek(toLocalDate("2011/11/28")) *means Monday
week starts Monday (the 2011/11/27 belongs the week, 2011/11/21 to 2011/11/27)
if the date is 2011/11/27 00:00:00, moveToWeekJust() moves it to 2011/11/21
(means the date moves to just beginning of week containing 2011/11/27)
weekBeginDayOfWeek - The local date that has the day of day-of-week-begin. (NotNull)public HandyDate beginWeek_DayOfWeek(LocalDateTime weekBeginDayOfWeek)
e.g. beginWeek_DayOfWeek(toLocalDateTime("2011/11/28")) *means Monday
week starts Monday (the 2011/11/27 belongs the week, 2011/11/21 to 2011/11/27)
if the date is 2011/11/27 00:00:00, moveToWeekJust() moves it to 2011/11/21
(means the date moves to just beginning of week containing 2011/11/27)
weekBeginDayOfWeek - The local date-time that has the day of day-of-week-begin. (NotNull)public HandyDate beginWeek_DayOfWeek(Date weekBeginDayOfWeek)
e.g. beginWeek_DayOfWeek(toDate("2011/11/28")) *means Monday
week starts Monday (the 2011/11/27 belongs the week, 2011/11/21 to 2011/11/27)
if the date is 2011/11/27 00:00:00, moveToWeekJust() moves it to 2011/11/21
(means the date moves to just beginning of week containing 2011/11/27)
weekBeginDayOfWeek - The date that has the day of day-of-week-begin. (NotNull)protected void doBeginWeek_DayOfWeek(Date weekBeginDayOfWeek)
public HandyDate beginWeek_DayOfWeek1st_Sunday()
public HandyDate beginWeek_DayOfWeek2nd_Monday()
public HandyDate beginWeek_DayOfWeek3rd_Tuesday()
public HandyDate beginWeek_DayOfWeek4th_Wednesday()
public HandyDate beginWeek_DayOfWeek5th_Thursday()
public HandyDate beginWeek_DayOfWeek6th_Friday()
public HandyDate beginWeek_DayOfWeek7th_Saturday()
public LocalDate getLocalDate()
public LocalDateTime getLocalDateTime()
public Date getDate()
public Timestamp getTimestamp()
public TimeZone getTimeZone()
protected TimeZone getCalendarTimeZone()
public int getYear()
public Month getMonth()
public int getMonthAsOneOrigin()
public int getMonthAsZeroOrigin()
public int getDay()
public int getHour()
public int getMinute()
public int getSecond()
public int getMillisecond()
public int getDayOfWeek()
public int getWeekOfMonth()
public int getWeekOfYear()
public int getFirstDayOfMonth()
public int getLastDayOfMonth()
public String toDisp(String pattern)
pattern - The pattern of date, which can be used at SimpleDateFormat. (NotNull)public String toDisp(String pattern, TimeZone timeZone)
pattern - The pattern of date, which can be used at SimpleDateFormat. (NotNull)timeZone - The time-zone to format the date. (NotNull)public String toDisp(String pattern, Locale locale)
pattern - The pattern of date, which can be used at SimpleDateFormat. (NotNull)locale - The locale for formatting symbols. (NotNull)public String toDisp(String pattern, TimeZone timeZone, Locale locale)
pattern - The pattern of date, which can be used at SimpleDateFormat. (NotNull)timeZone - The time-zone to format the date. (NotNull)locale - The locale for formatting symbols. (NotNull)protected DateFormat createDateFormat(String pattern, TimeZone timeZone, Locale locale)
pattern - The pattern of date, which can be used at SimpleDateFormat. (NotNull)timeZone - The time-zone to format the date. (NullAllowed)locale - The locale for formatting symbols. (NullAllowed)protected String getBasicDispPattern()
public HandyDate deepCopy()
protected HandyDate createCopyInstance()
protected HandyDate createCopyInstance(LocalDate date)
date - The local date for new instance. (NotNull)protected HandyDate createCopyInstance(LocalDateTime date)
date - The local date-time for new instance. (NotNull)protected HandyDate createCopyInstance(Date date)
date - The date for new instance. (NotNull)protected void inheritTimeZone(HandyDate copy)
protected void inheritBeginAttribute(HandyDate cloned)
protected LocalDateTime toLocalDateTime(Date date)
protected Date toDate(LocalDateTime date)
protected Date[] toDateArray(LocalDateTime... dates)
protected HandyDate prepareCompareDate(LocalDateTime date)
protected void assertNotMinusNotOver(String name, int value, int max)
protected void assertValidMonth(int month)
protected void assertValidDay(int day)
protected void assertValidHour(int hour)
protected void assertValidMinute(int minute)
protected void assertValidSecond(int second)
protected void assertValidMillisecond(int millisecond)
Copyright © 2014–2015 The DBFlute Project. All rights reserved.