Package io.deephaven.time.calendar
Class StaticCalendarMethods
java.lang.Object
io.deephaven.time.calendar.StaticCalendarMethods
Convenience methods for
BusinessCalendar and Calendar.-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]businessDaysInRange(String start, String end) static String[]businessDaysInRange(Instant start, Instant end) static ZoneIdstatic Stringstatic DayOfWeekstatic DayOfWeekstatic DayOfWeekstatic String[]daysInRange(String start, String end) static String[]daysInRange(Instant start, Instant end) static doublediffBusinessDay(Instant start, Instant end) static longdiffBusinessNanos(Instant start, Instant end) static doublediffBusinessYear(Instant start, Instant end) static doublediffNonBusinessDay(Instant start, Instant end) static longdiffNonBusinessNanos(Instant start, Instant end) static doublestatic doublestatic doublestatic doublestatic doublestatic BusinessSchedulegetBusinessSchedule(String date) static BusinessSchedulegetBusinessSchedule(Instant time) static BusinessSchedulegetBusinessSchedule(LocalDate date) static booleanstatic booleanisBusinessDay(String date) static booleanisBusinessDay(Instant time) static booleanisBusinessDay(LocalDate date) static booleanisBusinessTime(Instant time) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic Stringname()static Stringstatic StringnextBusinessDay(int days) static StringnextBusinessDay(String date) static StringnextBusinessDay(String date, int days) static StringnextBusinessDay(Instant time) static StringnextBusinessDay(Instant time, int days) static BusinessSchedulestatic BusinessSchedulenextBusinessSchedule(int days) static BusinessSchedulenextBusinessSchedule(String date) static BusinessSchedulenextBusinessSchedule(String date, int days) static BusinessSchedulenextBusinessSchedule(Instant time) static BusinessSchedulenextBusinessSchedule(Instant time, int days) static StringnextDay()static StringnextDay(int days) static Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic StringnextNonBusinessDay(int days) static StringnextNonBusinessDay(String date) static StringnextNonBusinessDay(String date, int days) static StringnextNonBusinessDay(Instant time) static StringnextNonBusinessDay(Instant time, int days) static String[]nonBusinessDaysInRange(String start, String end) static String[]nonBusinessDaysInRange(Instant start, Instant end) static intnumberOfBusinessDays(String start, String end) static intnumberOfBusinessDays(String start, String end, boolean endInclusive) static intnumberOfBusinessDays(Instant start, Instant end) static intnumberOfBusinessDays(Instant start, Instant end, boolean endInclusive) static intnumberOfDays(String start, String end) static intnumberOfDays(String start, String end, boolean endInclusive) static intnumberOfDays(Instant start, Instant end) static intnumberOfDays(Instant start, Instant end, boolean endInclusive) static intnumberOfNonBusinessDays(String start, String end) static intnumberOfNonBusinessDays(String start, String end, boolean endInclusive) static intnumberOfNonBusinessDays(Instant start, Instant end) static intnumberOfNonBusinessDays(Instant start, Instant end, boolean endInclusive) static Stringstatic StringpreviousBusinessDay(int days) static StringpreviousBusinessDay(String date) static StringpreviousBusinessDay(String date, int days) static StringpreviousBusinessDay(Instant time) static StringpreviousBusinessDay(Instant time, int days) static BusinessSchedulestatic BusinessSchedulepreviousBusinessSchedule(int days) static BusinessSchedulestatic BusinessSchedulepreviousBusinessSchedule(String date, int days) static BusinessSchedulestatic BusinessSchedulepreviousBusinessSchedule(Instant time, int days) static Stringstatic StringpreviousDay(int days) static StringpreviousDay(String date) static StringpreviousDay(String date, int days) static StringpreviousDay(Instant time) static StringpreviousDay(Instant time, int days) static Stringstatic StringpreviousNonBusinessDay(int days) static StringpreviousNonBusinessDay(String date) static StringpreviousNonBusinessDay(String date, int days) static Stringstatic StringpreviousNonBusinessDay(Instant time, int days) static long
-
Method Details
-
name
-
currentDay
-
previousDay
-
previousDay
-
previousDay
-
previousDay
-
previousDay
-
previousDay
-
nextDay
-
nextDay
-
nextDay
-
nextDay
-
nextDay
-
nextDay
-
daysInRange
-
daysInRange
-
numberOfDays
-
numberOfDays
-
numberOfDays
-
numberOfDays
-
dayOfWeek
-
dayOfWeek
-
dayOfWeek
-
calendarTimeZone
-
isBusinessDay
public static boolean isBusinessDay() -
isBusinessDay
-
isBusinessDay
-
isBusinessDay
-
isBusinessTime
-
previousBusinessDay
-
previousBusinessDay
-
previousBusinessDay
-
previousBusinessDay
-
previousBusinessDay
-
previousBusinessDay
-
previousBusinessSchedule
-
previousBusinessSchedule
-
previousBusinessSchedule
-
previousBusinessSchedule
-
previousBusinessSchedule
-
previousBusinessSchedule
-
previousNonBusinessDay
-
previousNonBusinessDay
-
previousNonBusinessDay
-
previousNonBusinessDay
-
previousNonBusinessDay
-
previousNonBusinessDay
-
nextBusinessDay
-
nextBusinessDay
-
nextBusinessDay
-
nextBusinessDay
-
nextBusinessDay
-
nextBusinessDay
-
nextBusinessSchedule
-
nextBusinessSchedule
-
nextBusinessSchedule
-
nextBusinessSchedule
-
nextBusinessSchedule
-
nextBusinessSchedule
-
nextNonBusinessDay
-
nextNonBusinessDay
-
nextNonBusinessDay
-
nextNonBusinessDay
-
nextNonBusinessDay
-
nextNonBusinessDay
-
businessDaysInRange
-
businessDaysInRange
-
nonBusinessDaysInRange
-
nonBusinessDaysInRange
-
standardBusinessDayLengthNanos
public static long standardBusinessDayLengthNanos() -
diffBusinessNanos
-
diffNonBusinessNanos
-
diffBusinessDay
-
diffNonBusinessDay
-
diffBusinessYear
-
numberOfBusinessDays
-
numberOfBusinessDays
-
numberOfBusinessDays
-
numberOfBusinessDays
-
numberOfNonBusinessDays
-
numberOfNonBusinessDays
-
numberOfNonBusinessDays
-
numberOfNonBusinessDays
-
fractionOfStandardBusinessDay
public static double fractionOfStandardBusinessDay() -
fractionOfStandardBusinessDay
-
fractionOfStandardBusinessDay
-
fractionOfBusinessDayRemaining
-
fractionOfBusinessDayComplete
-
isLastBusinessDayOfMonth
public static boolean isLastBusinessDayOfMonth() -
isLastBusinessDayOfMonth
-
isLastBusinessDayOfMonth
-
isLastBusinessDayOfWeek
public static boolean isLastBusinessDayOfWeek() -
isLastBusinessDayOfWeek
-
isLastBusinessDayOfWeek
-
getBusinessSchedule
-
getBusinessSchedule
-
getBusinessSchedule
-