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

More support for ISO 8601 WeekYear and WeekOfWeekYear #120

Closed
GoogleCodeExporter opened this issue Mar 15, 2015 · 6 comments
Closed

More support for ISO 8601 WeekYear and WeekOfWeekYear #120

GoogleCodeExporter opened this issue Mar 15, 2015 · 6 comments
Milestone

Comments

@GoogleCodeExporter
Copy link

At a minimum we should be able to construct a LocalDate from the WeekYear and 
WeekOfWeekYear.  Something as simple as:

new LocalDate(2012, 1, IsoDayOfWeek.Tuesday); // WeekYear 2012 Week 1

As evidenced by 
http://stackoverflow.com/questions/11342856/localdate-from-week-and-weekyear I 
am not the only user that has needed this.

More advanced support, the need for which is hinted at in a comment on the 
stackoverflow answer, would be to have a type to represent a week.  I would 
also find this helpful and would it fit better with the Noda time approach.  
Something like:

var week = new LocalWeek(2012, 1);
var date = week.On(IsoDayOfWeek.Tuesday); // create a LocalDate
date.Week // Get the LocalWeek for a date

The LocalWeek would be a year and week only.

Original issue reported on code.google.com by WalkerCo...@gmail.com on 11 Oct 2012 at 8:58

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