Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(653)

Issue 5392041: code review 5392041: time: new Time, Duration, ZoneInfo types (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by rsc
Modified:
12 years, 5 months ago
Reviewers:
CC:
r, bradfitz, gri, dsymonds, iant, golang-dev
Visibility:
Public.

Description

time: new Time, Duration, ZoneInfo types

Patch Set 1 #

Patch Set 2 : diff -r 80e9ed9f7989 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 80e9ed9f7989 https://go.googlecode.com/hg/ #

Total comments: 91

Patch Set 4 : diff -r 80e9ed9f7989 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 4382717b7ffc https://go.googlecode.com/hg/ #

Total comments: 29

Patch Set 6 : diff -r 6abf04c86097 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r e0fca18c54e6 https://go.googlecode.com/hg/ #

Total comments: 8

Patch Set 8 : diff -r 6abf04c86097 https://go.googlecode.com/hg/ #

Total comments: 20

Patch Set 9 : diff -r 3c286b9b2206 https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r 3c286b9b2206 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1970 lines, -875 lines) Patch
M src/pkg/runtime/darwin/386/sys.s View 1 1 chunk +16 lines, -0 lines 0 comments Download
M src/pkg/runtime/darwin/amd64/sys.s View 1 1 chunk +13 lines, -0 lines 0 comments Download
M src/pkg/runtime/freebsd/386/sys.s View 1 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/runtime/freebsd/amd64/sys.s View 1 1 chunk +15 lines, -0 lines 0 comments Download
M src/pkg/runtime/linux/386/sys.s View 1 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/runtime/linux/amd64/sys.s View 1 1 chunk +15 lines, -0 lines 0 comments Download
M src/pkg/runtime/linux/arm/sys.s View 1 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/runtime/openbsd/386/sys.s View 1 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/runtime/openbsd/amd64/sys.s View 1 1 chunk +15 lines, -0 lines 0 comments Download
M src/pkg/runtime/time.goc View 1 1 chunk +1 line, -4 lines 0 comments Download
M src/pkg/runtime/windows/thread.c View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -0 lines 0 comments Download
M src/pkg/time/Makefile View 1 2 chunks +1 line, -5 lines 0 comments Download
A src/pkg/time/example_test.go View 1 1 chunk +58 lines, -0 lines 0 comments Download
M src/pkg/time/format.go View 1 2 3 4 5 6 7 8 17 chunks +295 lines, -154 lines 0 comments Download
M src/pkg/time/internal_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/time/sleep.go View 1 5 chunks +14 lines, -9 lines 0 comments Download
M src/pkg/time/sleep_test.go View 1 3 chunks +28 lines, -28 lines 0 comments Download
M src/pkg/time/sys.go View 1 2 3 4 1 chunk +29 lines, -13 lines 0 comments Download
M src/pkg/time/sys_unix.go View 1 1 chunk +2 lines, -5 lines 0 comments Download
M src/pkg/time/tick.go View 1 2 3 4 5 2 chunks +13 lines, -13 lines 0 comments Download
M src/pkg/time/tick_test.go View 1 1 chunk +7 lines, -7 lines 0 comments Download
M src/pkg/time/time.go View 1 2 3 4 5 6 7 8 2 chunks +804 lines, -241 lines 0 comments Download
M src/pkg/time/time_test.go View 1 2 3 18 chunks +218 lines, -104 lines 0 comments Download
M src/pkg/time/zoneinfo.go View 1 2 3 4 5 6 7 8 1 chunk +167 lines, -40 lines 0 comments Download
M src/pkg/time/zoneinfo_plan9.go View 1 2 3 3 chunks +3 lines, -12 lines 0 comments Download
M src/pkg/time/zoneinfo_unix.go View 1 2 3 5 chunks +86 lines, -55 lines 0 comments Download
M src/pkg/time/zoneinfo_windows.go View 1 2 3 4 5 6 7 8 9 3 chunks +89 lines, -184 lines 0 comments Download

Messages

Total messages: 31
rsc
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 6 months ago (2011-11-17 22:34:15 UTC) #1
bradfitz
http://codereview.appspot.com/5392041/diff/1056/src/pkg/time/time.go File src/pkg/time/time.go (right): http://codereview.appspot.com/5392041/diff/1056/src/pkg/time/time.go#newcode97 src/pkg/time/time.go:97: // String returns the English name of the month ...
12 years, 6 months ago (2011-11-17 22:50:27 UTC) #2
gri
http://codereview.appspot.com/5392041/diff/1056/src/pkg/time/format.go File src/pkg/time/format.go (right): http://codereview.appspot.com/5392041/diff/1056/src/pkg/time/format.go#newcode827 src/pkg/time/format.go:827: } why not just for nbytes < 10 { ...
12 years, 6 months ago (2011-11-17 23:43:13 UTC) #3
dsymonds
http://codereview.appspot.com/5392041/diff/1056/src/pkg/time/time.go File src/pkg/time/time.go (right): http://codereview.appspot.com/5392041/diff/1056/src/pkg/time/time.go#newcode42 src/pkg/time/time.go:42: // A nil Zone is interpreted to mean the ...
12 years, 6 months ago (2011-11-18 00:00:33 UTC) #4
rsc
On Thu, Nov 17, 2011 at 19:00, <dsymonds@golang.org> wrote: > This code is incorrect for ...
12 years, 6 months ago (2011-11-18 00:50:46 UTC) #5
rsc
On Thu, Nov 17, 2011 at 19:00, <dsymonds@golang.org> wrote: > Did you want to note ...
12 years, 6 months ago (2011-11-18 03:01:08 UTC) #6
rsc
On Thu, Nov 17, 2011 at 19:00, <dsymonds@golang.org> wrote: > src/pkg/time/time.go:42: // A nil Zone ...
12 years, 6 months ago (2011-11-18 03:02:42 UTC) #7
dsymonds
On Fri, Nov 18, 2011 at 2:02 PM, Russ Cox <rsc@golang.org> wrote: > On Thu, ...
12 years, 6 months ago (2011-11-18 03:09:28 UTC) #8
rsc
On Thu, Nov 17, 2011 at 22:09, David Symonds <dsymonds@golang.org> wrote: > But this is ...
12 years, 6 months ago (2011-11-18 03:14:01 UTC) #9
dsymonds
On Fri, Nov 18, 2011 at 2:14 PM, Russ Cox <rsc@golang.org> wrote: > On Thu, ...
12 years, 6 months ago (2011-11-18 03:21:54 UTC) #10
iant
FYI http://codereview.appspot.com/5392041/diff/1056/src/pkg/time/time.go File src/pkg/time/time.go (right): http://codereview.appspot.com/5392041/diff/1056/src/pkg/time/time.go#newcode523 src/pkg/time/time.go:523: // units do not have fixed lengths. On ...
12 years, 6 months ago (2011-11-18 06:10:13 UTC) #11
r
http://codereview.appspot.com/5392041/diff/1056/src/pkg/runtime/time.goc File src/pkg/runtime/time.goc (right): http://codereview.appspot.com/5392041/diff/1056/src/pkg/runtime/time.goc#newcode22 src/pkg/runtime/time.goc:22: // time.now is implemented in assembly. is time.now even ...
12 years, 6 months ago (2011-11-18 06:27:14 UTC) #12
rsc
Hello r@golang.org, bradfitz@golang.org, gri@golang.org, dsymonds@golang.org, iant@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 6 months ago (2011-11-18 16:25:09 UTC) #13
rsc
http://codereview.appspot.com/5392041/diff/1056/src/pkg/time/time.go File src/pkg/time/time.go (right): http://codereview.appspot.com/5392041/diff/1056/src/pkg/time/time.go#newcode8 src/pkg/time/time.go:8: // A Time represents an instant in time to ...
12 years, 6 months ago (2011-11-18 16:26:22 UTC) #14
rsc
On Thu, Nov 17, 2011 at 18:43, <gri@golang.org> wrote: > src/pkg/time/format.go:827: } > why not ...
12 years, 6 months ago (2011-11-18 16:29:47 UTC) #15
rsc
A few more comments I missed. http://codereview.appspot.com/5392041/diff/1056/src/pkg/runtime/time.goc File src/pkg/runtime/time.goc (right): http://codereview.appspot.com/5392041/diff/1056/src/pkg/runtime/time.goc#newcode22 src/pkg/runtime/time.goc:22: // time.now is ...
12 years, 6 months ago (2011-11-18 16:35:33 UTC) #16
r
LGTM http://codereview.appspot.com/5392041/diff/1112/src/pkg/time/format.go File src/pkg/time/format.go (right): http://codereview.appspot.com/5392041/diff/1112/src/pkg/time/format.go#newcode528 src/pkg/time/format.go:528: // corresponding to Jan 1, year 0, 15:04:00 ...
12 years, 6 months ago (2011-11-18 17:37:36 UTC) #17
rsc
http://codereview.appspot.com/5392041/diff/1112/src/pkg/time/format.go File src/pkg/time/format.go (right): http://codereview.appspot.com/5392041/diff/1112/src/pkg/time/format.go#newcode528 src/pkg/time/format.go:528: // corresponding to Jan 1, year 0, 15:04:00 +0000 ...
12 years, 6 months ago (2011-11-18 18:21:36 UTC) #18
iant
LGTM http://codereview.appspot.com/5392041/diff/1112/src/pkg/time/zoneinfo.go File src/pkg/time/zoneinfo.go (right): http://codereview.appspot.com/5392041/diff/1112/src/pkg/time/zoneinfo.go#newcode119 src/pkg/time/zoneinfo.go:119: end = 1 << 60 s/60/63/ ?
12 years, 6 months ago (2011-11-18 23:17:04 UTC) #19
rsc
I cut the dependencies from format.go: http://codereview.appspot.com/5392041/diff2/3033:5035/src/pkg/time/format.go
12 years, 6 months ago (2011-11-21 18:12:35 UTC) #20
r
http://codereview.appspot.com/5392041/diff/5035/src/pkg/time/format.go File src/pkg/time/format.go (right): http://codereview.appspot.com/5392041/diff/5035/src/pkg/time/format.go#newcode258 src/pkg/time/format.go:258: func itoa(x int) string { worth saying these reproduce ...
12 years, 6 months ago (2011-11-21 18:15:27 UTC) #21
gri
FYI http://codereview.appspot.com/5392041/diff/5035/src/pkg/time/format.go File src/pkg/time/format.go (right): http://codereview.appspot.com/5392041/diff/5035/src/pkg/time/format.go#newcode264 src/pkg/time/format.go:264: neg := x < 0 get rid of ...
12 years, 6 months ago (2011-11-21 18:29:08 UTC) #22
rsc
On Mon, Nov 21, 2011 at 13:29, <gri@golang.org> wrote: > FYI Applied these fixes. Thanks.
12 years, 5 months ago (2011-11-28 18:44:42 UTC) #23
gri
LGTM http://codereview.appspot.com/5392041/diff/11004/src/pkg/time/format.go File src/pkg/time/format.go (right): http://codereview.appspot.com/5392041/diff/11004/src/pkg/time/format.go#newcode258 src/pkg/time/format.go:258: func itoa(x int) string { Is there a ...
12 years, 5 months ago (2011-11-28 22:35:15 UTC) #24
dsymonds
FYI http://codereview.appspot.com/5392041/diff/11004/src/pkg/time/zoneinfo.go File src/pkg/time/zoneinfo.go (right): http://codereview.appspot.com/5392041/diff/11004/src/pkg/time/zoneinfo.go#newcode169 src/pkg/time/zoneinfo.go:169: // The files total 200 kB. On 2011/11/28 ...
12 years, 5 months ago (2011-11-28 22:57:48 UTC) #25
dsymonds
LGTM Just some final nit-picky comments. http://codereview.appspot.com/5392041/diff/11004/src/pkg/time/time.go File src/pkg/time/time.go (right): http://codereview.appspot.com/5392041/diff/11004/src/pkg/time/time.go#newcode22 src/pkg/time/time.go:22: // gives a ...
12 years, 5 months ago (2011-11-29 00:01:39 UTC) #26
rsc
Thanks for the comments. > http://codereview.appspot.com/5392041/diff/11004/src/pkg/time/time.go#newcode25 > src/pkg/time/time.go:25: // presentation form of the time, such ...
12 years, 5 months ago (2011-11-29 01:48:31 UTC) #27
dsymonds
On Tue, Nov 29, 2011 at 12:48 PM, Russ Cox <rsc@golang.org> wrote: >> http://codereview.appspot.com/5392041/diff/11004/src/pkg/time/time.go#newcode137 >> ...
12 years, 5 months ago (2011-11-29 02:00:04 UTC) #28
rsc
On Mon, Nov 28, 2011 at 21:00, David Symonds <dsymonds@golang.org> wrote: > In the Gregorian ...
12 years, 5 months ago (2011-11-30 16:20:29 UTC) #29
rsc
On Mon, Nov 28, 2011 at 21:00, David Symonds <dsymonds@golang.org> wrote: > Okay, fair enough. ...
12 years, 5 months ago (2011-11-30 16:23:44 UTC) #30
rsc
12 years, 5 months ago (2011-11-30 16:59:50 UTC) #31
*** Submitted as http://code.google.com/p/go/source/detail?r=5bd1bc51fc04 ***

time: new Time, Duration, ZoneInfo types

R=r, bradfitz, gri, dsymonds, iant
CC=golang-dev
http://codereview.appspot.com/5392041
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b