]> Cypherpunks repositories - gostls13.git/commit
New time formatter, time.Format(formatString)
authorRob Pike <r@golang.org>
Wed, 6 Jan 2010 23:32:48 +0000 (10:32 +1100)
committerRob Pike <r@golang.org>
Wed, 6 Jan 2010 23:32:48 +0000 (10:32 +1100)
commite05b381e79b1478ae138e08c5f541ecbb5d6955d
tree85fa59ea93f954f089deda6f7fc9c124749bc7ff
parent9c9c89c013c71617ce7f0dec3344eff1c8171ca5
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
https://golang.org/cl/181130
src/pkg/time/Makefile
src/pkg/time/format.go [new file with mode: 0644]
src/pkg/time/time.go
src/pkg/time/time_test.go