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

Set on class #46

Closed
Hout opened this issue Oct 4, 2015 · 1 comment
Closed

Set on class #46

Hout opened this issue Oct 4, 2015 · 1 comment

Comments

@Hout
Copy link
Contributor

Hout commented Oct 4, 2015

What about a class func?

let date1 = NSDate.set(yearForWeekOfYear: 2014, weekOfYear: 23, weekDay: 3)
let date2 = NSDate.set(year 2014, month: 10, day: 3)
let date3 = NSDate.set(year 2014, quarter: 3, month: 1, day: 3)
let date4 = NSDate.set(year 2014, month: 1, weekInMonth: 2, day: 3)
let date5 = NSDate.set(year 2014, month: 1, weekInMonth: 2, day: 3, hour: 12, minute: 3)
@Hout
Copy link
Contributor Author

Hout commented Oct 4, 2015

I should look better. You readily have one so I will close this one.
I will open another one for the week, quarter, week in month setters though.

@Hout Hout closed this as completed Oct 4, 2015
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

1 participant