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 Details

    • getStartTime

      public DBDateTime getStartTime()
      Returns the start of the period.
      Returns:
      the start of the period
    • getEndTime

      public DBDateTime 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

      public boolean contains​(DBDateTime time)
      Determines if the specified time is within the business period.
      Parameters:
      time - time.
      Returns:
      true if the time is in this period; otherwise, false.