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

startOf and endOF func #45

Closed
Hout opened this issue Oct 4, 2015 · 5 comments
Closed

startOf and endOF func #45

Hout opened this issue Oct 4, 2015 · 5 comments

Comments

@Hout
Copy link
Contributor

Hout commented Oct 4, 2015

Hi,

Playing with the idea to use an NSCalendarUnit hare as in:

let date = oldDate.endOf(.Day)

What do you think?

@Hout
Copy link
Contributor Author

Hout commented Oct 4, 2015

Sorry you already have one... :D

@Hout Hout closed this as completed Oct 4, 2015
@Hout
Copy link
Contributor Author

Hout commented Oct 4, 2015

Ah no that was the class func, this one stays open

@Hout Hout reopened this Oct 4, 2015
@malcommac
Copy link
Owner

Great idea, I'll commit it later this week

@Hout
Copy link
Contributor Author

Hout commented Oct 8, 2015

Finished it! :-)
Check out my development branch!
https://github.com/Hout/SwiftDate/blob/master/SwiftDate/SwiftDate.swift
I could issue a pull request but I changed quite a lot....

@malcommac
Copy link
Owner

Yeah, put a pull request so I can figure changes better, thanks. Anything can improve the code is welcome :)

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

No branches or pull requests

2 participants