Skip to content
New issue

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

Extend NSDate such that it behaves like DateInRegion for the default or local region #95

Closed
Hout opened this issue Dec 7, 2015 · 2 comments
Assignees
Milestone

Comments

@Hout
Copy link
Contributor

Hout commented Dec 7, 2015

Write the NSDate extension such that it behaves like DateInRegion for the local or default region. E.g.

nsdate = NSDate()
regionDate = nsdate.inRegion(defaultRegion)

// Now nsdate and regionDate would behave equivalent

This would make the library easier to use if no conversions to other locales, time zones or calendard are necessary.
It would also make migration from SwiftDate 1.2 easier.

@redent
Copy link

redent commented Dec 7, 2015

I agree, but adding inDefaultRegion() to isn't that bad anyway.

@Hout Hout added this to the v2.1 milestone Dec 13, 2015
@Hout Hout self-assigned this Dec 13, 2015
@Hout
Copy link
Contributor Author

Hout commented Jan 23, 2016

Fixed in v3.0.0

@Hout Hout closed this as completed Jan 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants