Package com.illumon.util.calendar
Class BusinessPeriod
java.lang.Object
com.illumon.util.calendar.BusinessPeriod
- All Implemented Interfaces:
Serializable
public class BusinessPeriod extends Object implements Serializable
A period of business time during a business day.
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description boolean
contains(DBDateTime time)
Determines if the specified time is within the business period.DBDateTime
getEndTime()
Returns the end of the period.long
getLength()
Returns the length of the period in nanoseconds.DBDateTime
getStartTime()
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.
-