Package io.deephaven.time.calendar
Class StaticCalendarMethods
java.lang.Object
io.deephaven.time.calendar.StaticCalendarMethods
Static versions of business calendar methods that use the default business calendar.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]businessDates(String start, String end) static String[]businessDates(String start, String end, boolean startInclusive, boolean endInclusive) static LocalDate[]businessDates(Instant start, Instant end) static LocalDate[]businessDates(Instant start, Instant end, boolean startInclusive, boolean endInclusive) static LocalDate[]businessDates(LocalDate start, LocalDate end) static LocalDate[]businessDates(LocalDate start, LocalDate end, boolean startInclusive, boolean endInclusive) static LocalDate[]businessDates(ZonedDateTime start, ZonedDateTime end) static LocalDate[]businessDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) static LocalDatestatic String[]calendarDates(String start, String end) static String[]calendarDates(String start, String end, boolean startInclusive, boolean endInclusive) static LocalDate[]calendarDates(Instant start, Instant end) static LocalDate[]calendarDates(Instant start, Instant end, boolean startInclusive, boolean endInclusive) static LocalDate[]calendarDates(LocalDate start, LocalDate end) static LocalDate[]calendarDates(LocalDate start, LocalDate end, boolean startInclusive, boolean endInclusive) static LocalDate[]calendarDates(ZonedDateTime start, ZonedDateTime end) static LocalDate[]calendarDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) static CalendarDay<Instant>static CalendarDay<Instant>calendarDay(String date) static CalendarDay<Instant>calendarDay(Instant time) static CalendarDay<Instant>calendarDay(LocalDate date) static CalendarDay<Instant>calendarDay(ZonedDateTime time) static DayOfWeekstatic DayOfWeekcalendarDayOfWeek(String date) static DayOfWeekcalendarDayOfWeek(Instant time) static DayOfWeekcalendarDayOfWeek(LocalDate date) static DayOfWeekstatic intstatic intcalendarDayOfWeekValue(String date) static intstatic intstatic intstatic ZoneIdstatic doublediffBusinessDays(Instant start, Instant end) static doublediffBusinessDays(ZonedDateTime start, ZonedDateTime end) static DurationdiffBusinessDuration(Instant start, Instant end) static DurationdiffBusinessDuration(ZonedDateTime start, ZonedDateTime end) static longdiffBusinessNanos(Instant start, Instant end) static longdiffBusinessNanos(ZonedDateTime start, ZonedDateTime end) static doublediffBusinessYears(Instant start, Instant end) static doublediffBusinessYears(ZonedDateTime start, ZonedDateTime end) static DurationdiffNonBusinessDuration(Instant start, Instant end) static DurationdiffNonBusinessDuration(ZonedDateTime start, ZonedDateTime end) static longdiffNonBusinessNanos(Instant start, Instant end) static longdiffNonBusinessNanos(ZonedDateTime start, ZonedDateTime end) static doublestatic doublestatic doublestatic doublestatic doublestatic doublestatic doublestatic doublestatic doublestatic doublestatic doublestatic LocalDatefutureBusinessDate(int days) static LocalDatefutureDate(int days) static LocalDatefutureNonBusinessDate(int days) static Map<LocalDate,CalendarDay<Instant>> holidays()static booleanstatic booleanisBusinessDay(String date) static booleanisBusinessDay(DayOfWeek day) static booleanisBusinessDay(Instant time) static booleanisBusinessDay(LocalDate date) static booleanisBusinessDay(ZonedDateTime time) static booleanstatic booleanisBusinessTime(Instant time) static booleanisBusinessTime(ZonedDateTime time) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic StringminusBusinessDays(String date, int days) static InstantminusBusinessDays(Instant time, int days) static LocalDateminusBusinessDays(LocalDate date, int days) static ZonedDateTimeminusBusinessDays(ZonedDateTime time, int days) static Stringstatic Instantstatic LocalDatestatic ZonedDateTimeminusDays(ZonedDateTime time, int days) static StringminusNonBusinessDays(String date, int days) static InstantminusNonBusinessDays(Instant time, int days) static LocalDateminusNonBusinessDays(LocalDate date, int days) static ZonedDateTimeminusNonBusinessDays(ZonedDateTime time, int days) static String[]nonBusinessDates(String start, String end) static String[]nonBusinessDates(String start, String end, boolean startInclusive, boolean endInclusive) static LocalDate[]nonBusinessDates(Instant start, Instant end) static LocalDate[]nonBusinessDates(Instant start, Instant end, boolean startInclusive, boolean endInclusive) static LocalDate[]nonBusinessDates(LocalDate start, LocalDate end) static LocalDate[]nonBusinessDates(LocalDate start, LocalDate end, boolean startInclusive, boolean endInclusive) static LocalDate[]nonBusinessDates(ZonedDateTime start, ZonedDateTime end) static LocalDate[]nonBusinessDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) static intnumberBusinessDates(String start, String end) static intnumberBusinessDates(String start, String end, boolean startInclusive, boolean endInclusive) static intnumberBusinessDates(Instant start, Instant end) static intnumberBusinessDates(Instant start, Instant end, boolean startInclusive, boolean endInclusive) static intnumberBusinessDates(LocalDate start, LocalDate end) static intnumberBusinessDates(LocalDate start, LocalDate end, boolean startInclusive, boolean endInclusive) static intnumberBusinessDates(ZonedDateTime start, ZonedDateTime end) static intnumberBusinessDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) static intnumberCalendarDates(String start, String end) static intnumberCalendarDates(String start, String end, boolean startInclusive, boolean endInclusive) static intnumberCalendarDates(Instant start, Instant end) static intnumberCalendarDates(Instant start, Instant end, boolean startInclusive, boolean endInclusive) static intnumberCalendarDates(LocalDate start, LocalDate end) static intnumberCalendarDates(LocalDate start, LocalDate end, boolean startInclusive, boolean endInclusive) static intnumberCalendarDates(ZonedDateTime start, ZonedDateTime end) static intnumberCalendarDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) static intnumberNonBusinessDates(String start, String end) static intnumberNonBusinessDates(String start, String end, boolean startInclusive, boolean endInclusive) static intnumberNonBusinessDates(Instant start, Instant end) static intnumberNonBusinessDates(Instant start, Instant end, boolean startInclusive, boolean endInclusive) static intnumberNonBusinessDates(LocalDate start, LocalDate end) static intnumberNonBusinessDates(LocalDate start, LocalDate end, boolean startInclusive, boolean endInclusive) static intnumberNonBusinessDates(ZonedDateTime start, ZonedDateTime end) static intnumberNonBusinessDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) static LocalDatepastBusinessDate(int days) static LocalDatepastDate(int days) static LocalDatepastNonBusinessDate(int days) static StringplusBusinessDays(String date, int days) static InstantplusBusinessDays(Instant time, int days) static LocalDateplusBusinessDays(LocalDate date, int days) static ZonedDateTimeplusBusinessDays(ZonedDateTime time, int days) static Stringstatic Instantstatic LocalDatestatic ZonedDateTimeplusDays(ZonedDateTime time, int days) static StringplusNonBusinessDays(String date, int days) static InstantplusNonBusinessDays(Instant time, int days) static LocalDateplusNonBusinessDays(LocalDate date, int days) static ZonedDateTimeplusNonBusinessDays(ZonedDateTime time, int days) static CalendarDay<LocalTime>static Durationstatic long
-
Constructor Details
-
StaticCalendarMethods
public StaticCalendarMethods()
-
-
Method Details
-
businessDates
-
businessDates
-
businessDates
-
businessDates
-
businessDates
-
businessDates
-
businessDates
-
businessDates
public static LocalDate[] businessDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) -
calendarDate
- See Also:
-
calendarDates
-
calendarDates
-
calendarDates
-
calendarDates
-
calendarDates
-
calendarDates
-
calendarDates
-
calendarDates
public static LocalDate[] calendarDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) -
calendarDay
- See Also:
-
calendarDay
-
calendarDay
-
calendarDay
-
calendarDay
-
calendarDayOfWeek
- See Also:
-
calendarDayOfWeek
- See Also:
-
calendarDayOfWeek
- See Also:
-
calendarDayOfWeek
- See Also:
-
calendarDayOfWeek
-
calendarDayOfWeekValue
public static int calendarDayOfWeekValue()- See Also:
-
calendarDayOfWeekValue
-
calendarDayOfWeekValue
-
calendarDayOfWeekValue
-
calendarDayOfWeekValue
-
diffBusinessDays
-
diffBusinessDays
-
diffBusinessDuration
-
diffBusinessDuration
-
diffBusinessNanos
-
diffBusinessNanos
-
diffBusinessYears
-
diffBusinessYears
-
diffNonBusinessDuration
-
diffNonBusinessDuration
-
diffNonBusinessNanos
-
diffNonBusinessNanos
-
fractionBusinessDayComplete
public static double fractionBusinessDayComplete() -
fractionBusinessDayComplete
-
fractionBusinessDayComplete
-
fractionBusinessDayRemaining
public static double fractionBusinessDayRemaining() -
fractionBusinessDayRemaining
-
fractionBusinessDayRemaining
-
fractionStandardBusinessDay
public static double fractionStandardBusinessDay() -
fractionStandardBusinessDay
-
fractionStandardBusinessDay
-
fractionStandardBusinessDay
-
fractionStandardBusinessDay
-
futureBusinessDate
- See Also:
-
futureDate
- See Also:
-
futureNonBusinessDate
-
holidays
- See Also:
-
isBusinessDay
public static boolean isBusinessDay()- See Also:
-
isBusinessDay
-
isBusinessDay
-
isBusinessDay
-
isBusinessDay
-
isBusinessDay
-
isBusinessTime
public static boolean isBusinessTime()- See Also:
-
isBusinessTime
-
isBusinessTime
-
isLastBusinessDayOfMonth
public static boolean isLastBusinessDayOfMonth() -
isLastBusinessDayOfMonth
-
isLastBusinessDayOfMonth
-
isLastBusinessDayOfMonth
-
isLastBusinessDayOfWeek
public static boolean isLastBusinessDayOfWeek() -
isLastBusinessDayOfWeek
-
isLastBusinessDayOfWeek
-
isLastBusinessDayOfWeek
-
isLastBusinessDayOfWeek
-
isLastBusinessDayOfYear
public static boolean isLastBusinessDayOfYear() -
isLastBusinessDayOfYear
-
isLastBusinessDayOfYear
-
minusBusinessDays
-
minusBusinessDays
-
minusBusinessDays
-
minusBusinessDays
-
minusDays
- See Also:
-
minusDays
-
minusDays
-
minusDays
-
minusNonBusinessDays
-
minusNonBusinessDays
-
minusNonBusinessDays
-
minusNonBusinessDays
-
nonBusinessDates
-
nonBusinessDates
-
nonBusinessDates
-
nonBusinessDates
-
nonBusinessDates
-
nonBusinessDates
-
nonBusinessDates
-
nonBusinessDates
public static LocalDate[] nonBusinessDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) -
numberBusinessDates
-
numberBusinessDates
-
numberBusinessDates
-
numberBusinessDates
-
numberBusinessDates
-
numberBusinessDates
-
numberBusinessDates
-
numberBusinessDates
public static int numberBusinessDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) -
numberCalendarDates
-
numberCalendarDates
-
numberCalendarDates
-
numberCalendarDates
-
numberCalendarDates
-
numberCalendarDates
-
numberCalendarDates
-
numberCalendarDates
public static int numberCalendarDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) -
numberNonBusinessDates
-
numberNonBusinessDates
-
numberNonBusinessDates
-
numberNonBusinessDates
-
numberNonBusinessDates
-
numberNonBusinessDates
-
numberNonBusinessDates
-
numberNonBusinessDates
public static int numberNonBusinessDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) -
pastBusinessDate
- See Also:
-
pastDate
- See Also:
-
pastNonBusinessDate
-
plusBusinessDays
-
plusBusinessDays
-
plusBusinessDays
-
plusBusinessDays
-
plusDays
- See Also:
-
plusDays
- See Also:
-
plusDays
-
plusDays
-
plusNonBusinessDays
-
plusNonBusinessDays
-
plusNonBusinessDays
-
plusNonBusinessDays
-
standardBusinessDay
- See Also:
-
standardBusinessDuration
-
standardBusinessNanos
public static long standardBusinessNanos()- See Also:
-
calendarTimeZone
- See Also:
-
weekendDays
- See Also:
-