Features - Anar-Framework/anar-lib-businessworkingcalendar GitHub Wiki

Working Business Hour

A representation of business hours.

  • Tells if these business hours are equals to the given ones.
  • Get a set of crons corresponding to each closing.
  • Tells if the business is open at the given time.
  • Get the time between the given temporal and the next business opening.
  • Return a string representation of the business hour instance.

Business Working Period

  • Tells if this period is always open.
  • Get the closing time of this period.
  • Get a CronExpression that triggers at each period closing.
  • Get the opening time of this period.
  • Get a CronExpression that triggers at each period opening.
  • Tells if the given temporal lies within this period.
  • Merge intersecting or adjacent periods.
  • Gives the amount of time between the given temporal and the next opening of this period.

Temporal

A temporal containing fields that can be used to define business hours. These fields must be continguous and have a fixed range.

  • Increments the least significant field of this Business Temporal by one.
  • Check if supported
  • Get the amount of time between the provided temporal and the next occurrence of this business temporal.
  • Get the amount of time between the provided temporal and the next occurrence of this business temporal. Contrary to 'until', this method returns a result of a precision equivalent to the precision of the provided temporal, and guarantees that the result will be positive

Expression

Create a Cron Expression that triggers when the given temporal occurs.