diff --git a/Sources/SwiftDate/Date/Date+Math.swift b/Sources/SwiftDate/Date/Date+Math.swift index 5383c9bd..9073995d 100644 --- a/Sources/SwiftDate/Date/Date+Math.swift +++ b/Sources/SwiftDate/Date/Date+Math.swift @@ -30,6 +30,11 @@ public func + (lhs: DateComponents, rhs: Date) -> Date { return (rhs + lhs) } +/// Adds 'DateInRegion' to a date and returns a new date. +public func + (lhs: Date, rhs: DateInRegion) -> Date { + return (lhs + rhs.date.dateComponents) +} + /// Subtracts date components from a date and returns a new date. public func - (lhs: Date, rhs: DateComponents) -> Date { return (lhs + (-rhs))