On Thu, Apr 8, 2010 at 7:26 PM, Mark J. Reed <markjr...@gmail.com> wrote: > I think that :to<week> should stay as-is; it truncates to whatever the .week > method returns, and that's Monday-based. It would be too inconsistent for it > to do anything else. Asking for the latest prior Sunday or any other > weekday is a useful function, but it doesn't really have anything to do with > 'truncation'.
indeed truncating to any day of the week can be implemented by user trivially by adding/subtracting a constant number of days from the Monday returned. > I do think that an "unchecked" version of the setters is called for, one > that silently converts out-of-range values rather than throwing an > exception. That's not an easy thing to implement outside of the library > without duplicating all the range-checking code. Would it be unreasonably hackish to get a converted from out-of-range date out of the exception?