public class PackedLocalDate extends Object
The bytes are packed into the int as: First two bytes: short (year) next byte (month of year) last byte (day of month)
Constructor and Description |
---|
PackedLocalDate() |
Modifier and Type | Method and Description |
---|---|
static LocalDate |
asLocalDate(int date) |
static int |
daysUntil(int packedDateEnd,
int packedDateStart) |
static byte |
getDayOfMonth(int date) |
static DayOfWeek |
getDayOfWeek(int packedDate) |
static int |
getDayOfYear(int packedDate) |
static Month |
getMonth(int packedDate) |
static byte |
getMonthValue(int date) |
static int |
getQuarter(int packedDate)
Returns the quarter of the year of the given date as an int from 1 to 4, or -1, if the argument
is the MISSING_VALUE for DateColumn
|
static int |
getWeekOfYear(int packedDateTime) |
static short |
getYear(int date) |
static boolean |
isAfter(int packedDate,
int value) |
static boolean |
isBefore(int packedDate,
int value) |
static boolean |
isDayOfWeek(int packedDate,
DayOfWeek dayOfWeek) |
static boolean |
isEqualTo(int packedDate,
int value) |
static boolean |
isFirstDayOfMonth(int packedDate) |
static boolean |
isFriday(int packedDate) |
static boolean |
isInApril(int packedDate) |
static boolean |
isInAugust(int packedDate) |
static boolean |
isInDecember(int packedDate) |
static boolean |
isInFebruary(int packedDate) |
static boolean |
isInJanuary(int packedDate) |
static boolean |
isInJuly(int packedDate) |
static boolean |
isInJune(int packedDate) |
static boolean |
isInMarch(int packedDate) |
static boolean |
isInMay(int packedDate) |
static boolean |
isInNovember(int packedDate) |
static boolean |
isInOctober(int packedDate) |
static boolean |
isInQ1(int packedDate) |
static boolean |
isInQ2(int packedDate) |
static boolean |
isInQ3(int packedDate) |
static boolean |
isInQ4(int packedDate) |
static boolean |
isInSeptember(int packedDate) |
static boolean |
isInYear(int next,
int year) |
static boolean |
isLastDayOfMonth(int packedDate) |
static boolean |
isLeapYear(int packedDate) |
static boolean |
isMonday(int packedDate) |
static boolean |
isOnOrAfter(int packedDate,
int value) |
static boolean |
isOnOrBefore(int packedDate,
int value) |
static boolean |
isSaturday(int packedDate) |
static boolean |
isSunday(int packedDate) |
static boolean |
isThursday(int packedDate) |
static boolean |
isTuesday(int packedDate) |
static boolean |
isWednesday(int packedDate) |
static int |
lengthOfMonth(int packedDate) |
static int |
lengthOfYear(int packedDate) |
static int |
minus(int valueToAdd,
ChronoUnit unit,
int packedDate) |
static int |
minusDays(int days,
int packedDate) |
static int |
minusMonths(int months,
int packedDate) |
static int |
minusWeeks(int valueToSubtract,
int packedDate) |
static int |
minusYears(int years,
int packedDate) |
static int |
monthsUntil(int packedDateEnd,
int packedDateStart) |
static int |
pack(int yr,
int m,
int d) |
static int |
pack(LocalDate date) |
static int |
pack(short yr,
byte m,
byte d) |
static int |
plus(int valueToAdd,
ChronoUnit unit,
int packedDate) |
static int |
plusDays(int days,
int packedDate) |
static int |
plusMonths(int months,
int packedDate) |
static int |
plusWeeks(int valueToAdd,
int packedDate) |
static int |
plusYears(int yearsToAdd,
int packedDate) |
static String |
toDateString(int date) |
static long |
toEpochDay(int packedDate)
Returns the epoch day in a form consistent with the java standard
|
static int |
weeksUntil(int packedDateEnd,
int packedDateStart) |
static int |
withDayOfMonth(int dayOfMonth,
int packedDate) |
static int |
withMonth(int month,
int packedDate) |
static int |
withYear(int year,
int packedDate) |
static int |
yearsUntil(int packedDateEnd,
int packedDateStart) |
public static byte getDayOfMonth(int date)
public static short getYear(int date)
public static LocalDate asLocalDate(int date)
public static byte getMonthValue(int date)
public static int pack(LocalDate date)
public static int pack(short yr, byte m, byte d)
public static int pack(int yr, int m, int d)
public static String toDateString(int date)
public static int getDayOfYear(int packedDate)
public static boolean isLeapYear(int packedDate)
public static Month getMonth(int packedDate)
public static int lengthOfMonth(int packedDate)
public static long toEpochDay(int packedDate)
public static DayOfWeek getDayOfWeek(int packedDate)
public static int getQuarter(int packedDate)
public static boolean isInQ1(int packedDate)
public static boolean isInQ2(int packedDate)
public static boolean isInQ3(int packedDate)
public static boolean isInQ4(int packedDate)
public static boolean isAfter(int packedDate, int value)
public static boolean isEqualTo(int packedDate, int value)
public static boolean isBefore(int packedDate, int value)
public static boolean isOnOrBefore(int packedDate, int value)
public static boolean isOnOrAfter(int packedDate, int value)
public static boolean isDayOfWeek(int packedDate, DayOfWeek dayOfWeek)
public static boolean isSunday(int packedDate)
public static boolean isMonday(int packedDate)
public static boolean isTuesday(int packedDate)
public static boolean isWednesday(int packedDate)
public static boolean isThursday(int packedDate)
public static boolean isFriday(int packedDate)
public static boolean isSaturday(int packedDate)
public static boolean isFirstDayOfMonth(int packedDate)
public static boolean isInJanuary(int packedDate)
public static boolean isInFebruary(int packedDate)
public static boolean isInMarch(int packedDate)
public static boolean isInApril(int packedDate)
public static boolean isInMay(int packedDate)
public static boolean isInJune(int packedDate)
public static boolean isInJuly(int packedDate)
public static boolean isInAugust(int packedDate)
public static boolean isInSeptember(int packedDate)
public static boolean isInOctober(int packedDate)
public static boolean isInNovember(int packedDate)
public static boolean isInDecember(int packedDate)
public static boolean isLastDayOfMonth(int packedDate)
public static int withDayOfMonth(int dayOfMonth, int packedDate)
public static int withMonth(int month, int packedDate)
public static int withYear(int year, int packedDate)
public static int plusYears(int yearsToAdd, int packedDate)
public static int minusYears(int years, int packedDate)
public static int plusMonths(int months, int packedDate)
public static int minusMonths(int months, int packedDate)
public static int plusWeeks(int valueToAdd, int packedDate)
public static int minusWeeks(int valueToSubtract, int packedDate)
public static int plusDays(int days, int packedDate)
public static int minusDays(int days, int packedDate)
public static boolean isInYear(int next, int year)
public static int lengthOfYear(int packedDate)
public static int getWeekOfYear(int packedDateTime)
public static int plus(int valueToAdd, ChronoUnit unit, int packedDate)
public static int minus(int valueToAdd, ChronoUnit unit, int packedDate)
public static int daysUntil(int packedDateEnd, int packedDateStart)
public static int weeksUntil(int packedDateEnd, int packedDateStart)
public static int monthsUntil(int packedDateEnd, int packedDateStart)
public static int yearsUntil(int packedDateEnd, int packedDateStart)
Copyright © 2019. All rights reserved.