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

Add syntactic sugar for constructing NSDate #74

Merged
merged 3 commits into from
May 13, 2016
Merged

Add syntactic sugar for constructing NSDate #74

merged 3 commits into from
May 13, 2016

Conversation

onmyway133
Copy link
Contributor

@onmyway133 onmyway133 commented May 13, 2016

  • Extends Double to create NSDate
5.day = 5 * 60 * 60 * 24
5.hour.ago == NSDate(timeIntervalSinceNow: -5 * 60 * 60)
5.minute.future == NSDate(timeIntervalSinceNow: 5 * 60 )

@onmyway133 onmyway133 changed the title Add syntactic sugar for constructing NSDate 😁 Add syntactic sugar for constructing NSDate May 13, 2016
@onmyway133 onmyway133 changed the title 😁 Add syntactic sugar for constructing NSDate Add syntactic sugar for constructing NSDate May 13, 2016
@zenangst zenangst merged commit abc36a6 into master May 13, 2016
@zenangst zenangst deleted the fix/date branch May 13, 2016 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants