We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SwiftDate 6.0.3
It looks like subtracting DateInRegions has a bug.
Consider the following code:
let today = DateInRegion() let tomorrow = now + 1.days // Shouldn't these return equal value? print(tomorrow - today) print(tomorrow.timeIntervalSince1970 - today.timeIntervalSince1970) print(tomorrow.timeIntervalSince(today))
Print output:
-86400.0 86400.0 86400.0
In DateInRegion+Math.swift:
DateInRegion+Math.swift
public func - (lhs: DateInRegion, rhs: DateInRegion) -> TimeInterval { return rhs.timeIntervalSince(lhs) }
Shouldn't this return:
lhs.timeIntervalSince(rhs)
The text was updated successfully, but these errors were encountered:
#693 Fixed DataInRegion subtraction wrong order
30e49b3
malcommac
No branches or pull requests
SwiftDate 6.0.3
It looks like subtracting DateInRegions has a bug.
Consider the following code:
Print output:
-86400.0 86400.0 86400.0
In
DateInRegion+Math.swift
:Shouldn't this return:
The text was updated successfully, but these errors were encountered: