Package com.illumon.util.calendar
Class BusinessPeriod
java.lang.Object
com.illumon.util.calendar.BusinessPeriod
- All Implemented Interfaces:
Serializable
A period of business time during a business day.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(DBDateTime time) Determines if the specified time is within the business period.Returns the end of the period.long
Returns the length of the period in nanoseconds.Returns the start of the period.
-
Method Details
-
getStartTime
Returns the start of the period.- Returns:
- the start of the period
-
getEndTime
Returns the end of the period.- Returns:
- the end of the period
-
getLength
public long getLength()Returns the length of the period in nanoseconds.- Returns:
- length of the period in nanoseconds
-
contains
Determines if the specified time is within the business period.- Parameters:
time
- time.- Returns:
- true if the time is in this period; otherwise, false.
-