On Thu, Dec 8, 2011 at 08:16, roger peppe <rogpeppe@gmail.com> wrote: > BTW, at first ...
13 years, 3 months ago
(2011-12-08 22:53:37 UTC)
#3
On Thu, Dec 8, 2011 at 08:16, roger peppe <rogpeppe@gmail.com> wrote:
> BTW, at first i had a test that t.AddDate(a, b, c).AddDate(-a, -b, c) == t
> but that doesn't always work. i suppose it's obvious in retrospect,
> but perhaps it deserves a comment?
The normalization comment should suffice. I don't want to
spend more ink on the special cases than on the behavior.
Russ
ping On 8 December 2011 22:53, Russ Cox <rsc@golang.org> wrote: > On Thu, Dec 8, ...
13 years, 3 months ago
(2011-12-14 13:39:16 UTC)
#4
ping
On 8 December 2011 22:53, Russ Cox <rsc@golang.org> wrote:
> On Thu, Dec 8, 2011 at 08:16, roger peppe <rogpeppe@gmail.com> wrote:
> > BTW, at first i had a test that t.AddDate(a, b, c).AddDate(-a, -b, c) ==
> t
> > but that doesn't always work. i suppose it's obvious in retrospect,
> > but perhaps it deserves a comment?
>
> The normalization comment should suffice. I don't want to
> spend more ink on the special cases than on the behavior.
>
> Russ
>
Issue 5465044: code review 5465044: time: new AddDate method
Created 13 years, 3 months ago by rog
Modified 13 years, 3 months ago
Reviewers:
Base URL:
Comments: 0