date_util

Methods

# (static) checkRatelogHasPeriod(ratelog, date)

Checks if a ratelog contains a given period.

Parameters:
Name Type Description
ratelog Object
date Date
Returns:

True if the given ratelog contains the given date period.

# (static) checkSamePeriod(date1, date2)

Checks 2 dates for equality in terms of period.

Parameters:
Name Type Description
date1 Date
date2 Date
Returns:

True if the given dates are in the same period.