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
-
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 LocalDate
static 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 DayOfWeek
static DayOfWeek
calendarDayOfWeek
(String date) static DayOfWeek
calendarDayOfWeek
(Instant time) static DayOfWeek
calendarDayOfWeek
(LocalDate date) static DayOfWeek
static int
static int
calendarDayOfWeekValue
(String date) static int
static int
static int
static ZoneId
static double
diffBusinessDays
(Instant start, Instant end) static double
diffBusinessDays
(ZonedDateTime start, ZonedDateTime end) static Duration
diffBusinessDuration
(Instant start, Instant end) static Duration
diffBusinessDuration
(ZonedDateTime start, ZonedDateTime end) static long
diffBusinessNanos
(Instant start, Instant end) static long
diffBusinessNanos
(ZonedDateTime start, ZonedDateTime end) static double
diffBusinessYears
(Instant start, Instant end) static double
diffBusinessYears
(ZonedDateTime start, ZonedDateTime end) static Duration
diffNonBusinessDuration
(Instant start, Instant end) static Duration
diffNonBusinessDuration
(ZonedDateTime start, ZonedDateTime end) static long
diffNonBusinessNanos
(Instant start, Instant end) static long
diffNonBusinessNanos
(ZonedDateTime start, ZonedDateTime end) static double
static double
static double
static double
static double
static double
static double
static double
static double
static double
static double
static LocalDate
futureBusinessDate
(int days) static LocalDate
futureDate
(int days) static LocalDate
futureNonBusinessDate
(int days) static Map<LocalDate,
CalendarDay<Instant>> holidays()
static boolean
static boolean
isBusinessDay
(String date) static boolean
isBusinessDay
(DayOfWeek day) static boolean
isBusinessDay
(Instant time) static boolean
isBusinessDay
(LocalDate date) static boolean
isBusinessDay
(ZonedDateTime time) static boolean
static boolean
isBusinessTime
(Instant time) static boolean
isBusinessTime
(ZonedDateTime time) static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static String
minusBusinessDays
(String date, int days) static Instant
minusBusinessDays
(Instant time, int days) static LocalDate
minusBusinessDays
(LocalDate date, int days) static ZonedDateTime
minusBusinessDays
(ZonedDateTime time, int days) static String
static Instant
static LocalDate
static ZonedDateTime
minusDays
(ZonedDateTime time, int days) static String
minusNonBusinessDays
(String date, int days) static Instant
minusNonBusinessDays
(Instant time, int days) static LocalDate
minusNonBusinessDays
(LocalDate date, int days) static ZonedDateTime
minusNonBusinessDays
(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 int
numberBusinessDates
(String start, String end) static int
numberBusinessDates
(String start, String end, boolean startInclusive, boolean endInclusive) static int
numberBusinessDates
(Instant start, Instant end) static int
numberBusinessDates
(Instant start, Instant end, boolean startInclusive, boolean endInclusive) static int
numberBusinessDates
(LocalDate start, LocalDate end) static int
numberBusinessDates
(LocalDate start, LocalDate end, boolean startInclusive, boolean endInclusive) static int
numberBusinessDates
(ZonedDateTime start, ZonedDateTime end) static int
numberBusinessDates
(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) static int
numberCalendarDates
(String start, String end) static int
numberCalendarDates
(String start, String end, boolean startInclusive, boolean endInclusive) static int
numberCalendarDates
(Instant start, Instant end) static int
numberCalendarDates
(Instant start, Instant end, boolean startInclusive, boolean endInclusive) static int
numberCalendarDates
(LocalDate start, LocalDate end) static int
numberCalendarDates
(LocalDate start, LocalDate end, boolean startInclusive, boolean endInclusive) static int
numberCalendarDates
(ZonedDateTime start, ZonedDateTime end) static int
numberCalendarDates
(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) static int
numberNonBusinessDates
(String start, String end) static int
numberNonBusinessDates
(String start, String end, boolean startInclusive, boolean endInclusive) static int
numberNonBusinessDates
(Instant start, Instant end) static int
numberNonBusinessDates
(Instant start, Instant end, boolean startInclusive, boolean endInclusive) static int
numberNonBusinessDates
(LocalDate start, LocalDate end) static int
numberNonBusinessDates
(LocalDate start, LocalDate end, boolean startInclusive, boolean endInclusive) static int
numberNonBusinessDates
(ZonedDateTime start, ZonedDateTime end) static int
numberNonBusinessDates
(ZonedDateTime start, ZonedDateTime end, boolean startInclusive, boolean endInclusive) static LocalDate
pastBusinessDate
(int days) static LocalDate
pastDate
(int days) static LocalDate
pastNonBusinessDate
(int days) static String
plusBusinessDays
(String date, int days) static Instant
plusBusinessDays
(Instant time, int days) static LocalDate
plusBusinessDays
(LocalDate date, int days) static ZonedDateTime
plusBusinessDays
(ZonedDateTime time, int days) static String
static Instant
static LocalDate
static ZonedDateTime
plusDays
(ZonedDateTime time, int days) static String
plusNonBusinessDays
(String date, int days) static Instant
plusNonBusinessDays
(Instant time, int days) static LocalDate
plusNonBusinessDays
(LocalDate date, int days) static ZonedDateTime
plusNonBusinessDays
(ZonedDateTime time, int days) static CalendarDay<LocalTime>
static Duration
static 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:
-