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.
- See Also:
-
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
- See Also:
-
businessDates
- See Also:
-
businessDates
- See Also:
-
businessDates
- See Also:
-
businessDates
public static String[] businessDates(String start, String end, boolean startInclusive, boolean endInclusive) - See Also:
-
businessDates
public static LocalDate[] businessDates(Instant start, Instant end, boolean startInclusive, boolean endInclusive) - See Also:
-
businessDates
public static LocalDate[] businessDates(LocalDate start, LocalDate end, boolean startInclusive, boolean endInclusive) - See Also:
-
businessDates
public static LocalDate[] businessDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) - See Also:
-
calendarDate
- See Also:
-
calendarDates
- See Also:
-
calendarDates
- See Also:
-
calendarDates
- See Also:
-
calendarDates
- See Also:
-
calendarDates
public static String[] calendarDates(String start, String end, boolean startInclusive, boolean endInclusive) - See Also:
-
calendarDates
public static LocalDate[] calendarDates(Instant start, Instant end, boolean startInclusive, boolean endInclusive) - See Also:
-
calendarDates
public static LocalDate[] calendarDates(LocalDate start, LocalDate end, boolean startInclusive, boolean endInclusive) - See Also:
-
calendarDates
public static LocalDate[] calendarDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) - See Also:
-
calendarDay
- See Also:
-
calendarDay
- See Also:
-
calendarDay
- See Also:
-
calendarDay
- See Also:
-
calendarDay
- See Also:
-
calendarDayOfWeek
- See Also:
-
calendarDayOfWeek
- See Also:
-
calendarDayOfWeek
- See Also:
-
calendarDayOfWeek
- See Also:
-
calendarDayOfWeek
- See Also:
-
calendarDayOfWeekValue
public static int calendarDayOfWeekValue()- See Also:
-
calendarDayOfWeekValue
- See Also:
-
calendarDayOfWeekValue
- See Also:
-
calendarDayOfWeekValue
- See Also:
-
calendarDayOfWeekValue
- See Also:
-
diffBusinessDays
- See Also:
-
diffBusinessDays
- See Also:
-
diffBusinessDuration
- See Also:
-
diffBusinessDuration
- See Also:
-
diffBusinessNanos
- See Also:
-
diffBusinessNanos
- See Also:
-
diffBusinessYears
- See Also:
-
diffBusinessYears
- See Also:
-
diffNonBusinessDuration
- See Also:
-
diffNonBusinessDuration
- See Also:
-
diffNonBusinessNanos
- See Also:
-
diffNonBusinessNanos
- See Also:
-
fractionBusinessDayComplete
public static double fractionBusinessDayComplete()- See Also:
-
fractionBusinessDayComplete
- See Also:
-
fractionBusinessDayComplete
- See Also:
-
fractionBusinessDayRemaining
public static double fractionBusinessDayRemaining()- See Also:
-
fractionBusinessDayRemaining
- See Also:
-
fractionBusinessDayRemaining
- See Also:
-
fractionStandardBusinessDay
public static double fractionStandardBusinessDay()- See Also:
-
fractionStandardBusinessDay
- See Also:
-
fractionStandardBusinessDay
- See Also:
-
fractionStandardBusinessDay
- See Also:
-
fractionStandardBusinessDay
- See Also:
-
futureBusinessDate
- See Also:
-
futureDate
- See Also:
-
futureNonBusinessDate
- See Also:
-
holidays
- See Also:
-
isBusinessDay
public static boolean isBusinessDay()- See Also:
-
isBusinessDay
- See Also:
-
isBusinessDay
- See Also:
-
isBusinessDay
- See Also:
-
isBusinessDay
- See Also:
-
isBusinessDay
- See Also:
-
isBusinessTime
public static boolean isBusinessTime()- See Also:
-
isBusinessTime
- See Also:
-
isBusinessTime
- See Also:
-
isLastBusinessDayOfMonth
public static boolean isLastBusinessDayOfMonth()- See Also:
-
isLastBusinessDayOfMonth
- See Also:
-
isLastBusinessDayOfMonth
- See Also:
-
isLastBusinessDayOfMonth
- See Also:
-
isLastBusinessDayOfWeek
public static boolean isLastBusinessDayOfWeek()- See Also:
-
isLastBusinessDayOfWeek
- See Also:
-
isLastBusinessDayOfWeek
- See Also:
-
isLastBusinessDayOfWeek
- See Also:
-
isLastBusinessDayOfWeek
- See Also:
-
isLastBusinessDayOfYear
public static boolean isLastBusinessDayOfYear()- See Also:
-
isLastBusinessDayOfYear
- See Also:
-
isLastBusinessDayOfYear
- See Also:
-
minusBusinessDays
- See Also:
-
minusBusinessDays
- See Also:
-
minusBusinessDays
- See Also:
-
minusBusinessDays
- See Also:
-
minusDays
- See Also:
-
minusDays
- See Also:
-
minusDays
- See Also:
-
minusDays
- See Also:
-
minusNonBusinessDays
- See Also:
-
minusNonBusinessDays
- See Also:
-
minusNonBusinessDays
- See Also:
-
minusNonBusinessDays
- See Also:
-
nonBusinessDates
- See Also:
-
nonBusinessDates
- See Also:
-
nonBusinessDates
- See Also:
-
nonBusinessDates
- See Also:
-
nonBusinessDates
public static String[] nonBusinessDates(String start, String end, boolean startInclusive, boolean endInclusive) - See Also:
-
nonBusinessDates
public static LocalDate[] nonBusinessDates(Instant start, Instant end, boolean startInclusive, boolean endInclusive) - See Also:
-
nonBusinessDates
public static LocalDate[] nonBusinessDates(LocalDate start, LocalDate end, boolean startInclusive, boolean endInclusive) - See Also:
-
nonBusinessDates
public static LocalDate[] nonBusinessDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) - See Also:
-
numberBusinessDates
- See Also:
-
numberBusinessDates
- See Also:
-
numberBusinessDates
- See Also:
-
numberBusinessDates
- See Also:
-
numberBusinessDates
public static int numberBusinessDates(String start, String end, boolean startInclusive, boolean endInclusive) - See Also:
-
numberBusinessDates
public static int numberBusinessDates(Instant start, Instant end, boolean startInclusive, boolean endInclusive) - See Also:
-
numberBusinessDates
public static int numberBusinessDates(LocalDate start, LocalDate end, boolean startInclusive, boolean endInclusive) - See Also:
-
numberBusinessDates
public static int numberBusinessDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) - See Also:
-
numberCalendarDates
- See Also:
-
numberCalendarDates
- See Also:
-
numberCalendarDates
- See Also:
-
numberCalendarDates
- See Also:
-
numberCalendarDates
public static int numberCalendarDates(String start, String end, boolean startInclusive, boolean endInclusive) - See Also:
-
numberCalendarDates
public static int numberCalendarDates(Instant start, Instant end, boolean startInclusive, boolean endInclusive) - See Also:
-
numberCalendarDates
public static int numberCalendarDates(LocalDate start, LocalDate end, boolean startInclusive, boolean endInclusive) - See Also:
-
numberCalendarDates
public static int numberCalendarDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) - See Also:
-
numberNonBusinessDates
- See Also:
-
numberNonBusinessDates
- See Also:
-
numberNonBusinessDates
- See Also:
-
numberNonBusinessDates
- See Also:
-
numberNonBusinessDates
public static int numberNonBusinessDates(String start, String end, boolean startInclusive, boolean endInclusive) - See Also:
-
numberNonBusinessDates
public static int numberNonBusinessDates(Instant start, Instant end, boolean startInclusive, boolean endInclusive) - See Also:
-
numberNonBusinessDates
public static int numberNonBusinessDates(LocalDate start, LocalDate end, boolean startInclusive, boolean endInclusive) - See Also:
-
numberNonBusinessDates
public static int numberNonBusinessDates(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) - See Also:
-
pastBusinessDate
- See Also:
-
pastDate
- See Also:
-
pastNonBusinessDate
- See Also:
-
plusBusinessDays
- See Also:
-
plusBusinessDays
- See Also:
-
plusBusinessDays
- See Also:
-
plusBusinessDays
- See Also:
-
plusDays
- See Also:
-
plusDays
- See Also:
-
plusDays
- See Also:
-
plusDays
- See Also:
-
plusNonBusinessDays
- See Also:
-
plusNonBusinessDays
- See Also:
-
plusNonBusinessDays
- See Also:
-
plusNonBusinessDays
- See Also:
-
standardBusinessDay
- See Also:
-
standardBusinessDuration
- See Also:
-
standardBusinessNanos
public static long standardBusinessNanos()- See Also:
-
calendarTimeZone
- See Also:
-
weekendDays
- See Also:
-