A static method to ensure that a Date range is in the same hour.
A method to check that two Dates represent either the start and end of an operation interval, if the operation interval is less than an hour, or the start and end of an hour otherwise.
A static method to convert a date range (in the form of two Dates) and return the operation interval ID represented by the range, or false if the date range spans more than one operation interval ID.
A static method to convert a Date object into the appropriate operation interval ID (of the week).
A static method to convert a Date into an array containing the start and end dates of the operation interval that the date is in.