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

Issue 181130: code review 181130: First pass at a new interface. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 4 months ago by r
Modified:
15 years, 4 months ago
Reviewers:
CC:
rsc, benolive, cw, golang-dev
Visibility:
Public.

Description

New time formatter, time.Format(formatString) The model is that formatString is a a representation of a standard time, and that Format converts the time to that representation. Standard representaitons are defined for ANSIC, RFC850, RFC1123, and ISO8601. There's also a humane Kitchen fomat: 3:04PM.

Patch Set 1 #

Total comments: 7

Patch Set 2 : code review 181130: First pass at a new interface. #

Total comments: 3

Patch Set 3 : code review 181130: First pass at a new interface. #

Total comments: 1

Patch Set 4 : code review 181130: First pass at a new interface. #

Total comments: 1

Patch Set 5 : code review 181130: New time formatter, time.Format(formatString) #

Patch Set 6 : code review 181130: New time formatter, time.Format(formatString) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -155 lines) Patch
M src/pkg/time/Makefile View 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/time/format.go View 1 2 3 1 chunk +227 lines, -0 lines 0 comments Download
M src/pkg/time/time.go View 1 1 chunk +0 lines, -152 lines 0 comments Download
M src/pkg/time/time_test.go View 1 2 3 4 5 1 chunk +31 lines, -3 lines 0 comments Download

Messages

Total messages: 11
r
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review the following change.
15 years, 4 months ago (2010-01-05 06:21:16 UTC) #1
benolive
On 2010/01/05 06:21:16, r wrote: > Hello rsc (cc: mailto:golang-dev@googlegroups.com), > > I'd like you ...
15 years, 4 months ago (2010-01-05 14:42:22 UTC) #2
rsc
very nice! http://codereview.appspot.com/181130/diff/1/3 File src/pkg/time/format.go (right): http://codereview.appspot.com/181130/diff/1/3#newcode13 src/pkg/time/format.go:13: const ( // doc comment http://codereview.appspot.com/181130/diff/1/3#newcode17 src/pkg/time/format.go:17: ...
15 years, 4 months ago (2010-01-05 16:42:02 UTC) #3
r2
PTAL
15 years, 4 months ago (2010-01-06 01:16:20 UTC) #4
cw
I really like the way this looks.
15 years, 4 months ago (2010-01-06 02:27:31 UTC) #5
r2
Thanks. I'm pretty happy with the interface. -rob
15 years, 4 months ago (2010-01-06 02:39:58 UTC) #6
rsc
http://codereview.appspot.com/181130/diff/7/9 File src/pkg/time/format.go (right): http://codereview.appspot.com/181130/diff/7/9#newcode13 src/pkg/time/format.go:13: // These are predefined formats for use in Time.Format(). ...
15 years, 4 months ago (2010-01-06 15:56:49 UTC) #7
r2
PTAL
15 years, 4 months ago (2010-01-06 23:00:53 UTC) #8
rsc
LGTM update CL desc before submit http://codereview.appspot.com/181130/diff/17/1020 File src/pkg/time/time_test.go (right): http://codereview.appspot.com/181130/diff/17/1020#newcode143 src/pkg/time/time_test.go:143: // The numeric ...
15 years, 4 months ago (2010-01-06 23:09:21 UTC) #9
rsc
LGTM http://codereview.appspot.com/181130/diff/23/1027 File src/pkg/time/time_test.go (right): http://codereview.appspot.com/181130/diff/23/1027#newcode143 src/pkg/time/time_test.go:143: // The numeric time represents Fri Feb 5 ...
15 years, 4 months ago (2010-01-06 23:23:03 UTC) #10
r
15 years, 4 months ago (2010-01-06 23:32:57 UTC) #11
*** Submitted as http://code.google.com/p/go/source/detail?r=9d7826e01636 ***

New time formatter, time.Format(formatString)
The model is that formatString is a a representation of a standard time,
and that Format converts the time to that representation.
Standard representaitons are defined for ANSIC, RFC850, RFC1123, and ISO8601.
There's also a humane Kitchen fomat: 3:04PM.

R=rsc, benolive, cw
CC=golang-dev
http://codereview.appspot.com/181130
Sign in to reply to this message.

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