Package com.illumon.util.calendar
Class StaticCalendarMethods
java.lang.Object
com.illumon.util.calendar.StaticCalendarMethods
Convenience methods for
BusinessCalendar
and Calendar
.-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
businessDaysInRange
(DBDateTime start, DBDateTime end) static String[]
businessDaysInRange
(String start, String end) static String
static DayOfWeek
static DayOfWeek
dayOfWeek
(DBDateTime time) static DayOfWeek
static String[]
daysInRange
(DBDateTime start, DBDateTime end) static String[]
daysInRange
(String start, String end) static double
diffBusinessDay
(DBDateTime start, DBDateTime end) static long
diffBusinessNanos
(DBDateTime start, DBDateTime end) static double
diffBusinessYear
(DBDateTime start, DBDateTime end) static double
diffNonBusinessDay
(DBDateTime start, DBDateTime end) static long
diffNonBusinessNanos
(DBDateTime start, DBDateTime end) static double
static double
static double
static double
static double
static BusinessSchedule
static BusinessSchedule
getBusinessSchedule
(String date) static BusinessSchedule
getBusinessSchedule
(LocalDate date) static boolean
static boolean
isBusinessDay
(DBDateTime time) static boolean
isBusinessDay
(String date) static boolean
isBusinessDay
(LocalDate date) static boolean
isBusinessTime
(DBDateTime time) static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static String
name()
static String
static String
nextBusinessDay
(int days) static String
nextBusinessDay
(DBDateTime time) static String
nextBusinessDay
(DBDateTime time, int days) static String
nextBusinessDay
(String date) static String
nextBusinessDay
(String date, int days) static BusinessSchedule
static BusinessSchedule
nextBusinessSchedule
(int days) static BusinessSchedule
static BusinessSchedule
nextBusinessSchedule
(DBDateTime time, int days) static BusinessSchedule
nextBusinessSchedule
(String date) static BusinessSchedule
nextBusinessSchedule
(String date, int days) static String
nextDay()
static String
nextDay
(int days) static String
nextDay
(DBDateTime time) static String
nextDay
(DBDateTime time, int days) static String
static String
static String
static String
nextNonBusinessDay
(int days) static String
nextNonBusinessDay
(DBDateTime time) static String
nextNonBusinessDay
(DBDateTime time, int days) static String
nextNonBusinessDay
(String date) static String
nextNonBusinessDay
(String date, int days) static String[]
nonBusinessDaysInRange
(DBDateTime start, DBDateTime end) static String[]
nonBusinessDaysInRange
(String start, String end) static int
numberOfBusinessDays
(DBDateTime start, DBDateTime end) static int
numberOfBusinessDays
(DBDateTime start, DBDateTime end, boolean endInclusive) static int
numberOfBusinessDays
(String start, String end) static int
numberOfBusinessDays
(String start, String end, boolean endInclusive) static int
numberOfDays
(DBDateTime start, DBDateTime end) static int
numberOfDays
(DBDateTime start, DBDateTime end, boolean endInclusive) static int
numberOfDays
(String start, String end) static int
numberOfDays
(String start, String end, boolean endInclusive) static int
numberOfNonBusinessDays
(DBDateTime start, DBDateTime end) static int
numberOfNonBusinessDays
(DBDateTime start, DBDateTime end, boolean endInclusive) static int
numberOfNonBusinessDays
(String start, String end) static int
numberOfNonBusinessDays
(String start, String end, boolean endInclusive) static String
static String
previousBusinessDay
(int days) static String
static String
previousBusinessDay
(DBDateTime time, int days) static String
previousBusinessDay
(String date) static String
previousBusinessDay
(String date, int days) static BusinessSchedule
static BusinessSchedule
previousBusinessSchedule
(int days) static BusinessSchedule
static BusinessSchedule
previousBusinessSchedule
(DBDateTime time, int days) static BusinessSchedule
static BusinessSchedule
previousBusinessSchedule
(String date, int days) static String
static String
previousDay
(int days) static String
previousDay
(DBDateTime time) static String
previousDay
(DBDateTime time, int days) static String
previousDay
(String date) static String
previousDay
(String date, int days) static String
static String
previousNonBusinessDay
(int days) static String
static String
previousNonBusinessDay
(DBDateTime time, int days) static String
previousNonBusinessDay
(String date) static String
previousNonBusinessDay
(String date, int days) static long
static DBTimeZone
timeZone()
-
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
-
timeZone
-
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
-