]> Cypherpunks repositories - gostls13.git/commit
time: add YearDay method for time.Time structs
authorCarlos Castillo <cookieo9@gmail.com>
Thu, 23 Aug 2012 03:49:16 +0000 (20:49 -0700)
committerRob Pike <r@golang.org>
Thu, 23 Aug 2012 03:49:16 +0000 (20:49 -0700)
commit7802080962dcbffea09894c9864bb4c30fdd6ce3
treeb3dd6a2f24852a6a0575974a40dc246fccb5d814
parenta738f2b2a24019ff205c79f4de9c8a14f478ef2c
time: add YearDay method for time.Time structs

YearDay provides the day in the year represented by a given time.Time
object. This value is normally computed as part of other date calculations,
but not exported.

Fixes #3932.

R=golang-dev, r, remyoudompheng
CC=golang-dev, rsc
https://golang.org/cl/6460069
src/pkg/time/time.go
src/pkg/time/time_test.go