Skip to main content

Function: trimExtraHours()

trimExtraHours(origDate, newDate, interval): Date

Defined in: functions.ts:33

Sometimes adding days can result in "extra hours" due to daylight saving time changes. This function trims those extra hours differences when the original date is at midnight and the interval being added is a whole number of days

Parameters

ParameterType
origDateDate
newDateDate
intervalInterval

Returns

Date