diff options
| author | Adam Langley <agl@golang.org> | 2009-10-06 10:01:39 -0700 |
|---|---|---|
| committer | Adam Langley <agl@golang.org> | 2009-10-06 10:01:39 -0700 |
| commit | 23d4b24dfe7821a69a39f1dadaff0ade9f26efa3 (patch) | |
| tree | b77e89396d8d174639f1fbc3c57ca06af793f170 | |
| parent | 48cfeb74959324e748e0d368f5e89c44689a7c83 (diff) | |
| download | golang-23d4b24dfe7821a69a39f1dadaff0ade9f26efa3.tar.gz | |
Change description of time.Time.ZoneOffset to specify east is +ve.
Currently, the description says that +ve numbers are westwards of UTC.
Typically, timezones are specified with +ve numbers running east of Greenwich.
For example, San Francisco is specified as UTC-8. Also, when calling
time.Localtime(), the following is returned on my box in PDT:
{Year:2009 Month:10 Day:5 Hour:18 Minute:55 Second:6 Weekday:1 ZoneOffset:-25200
Zone:PDT}
Note that the ZoneOffset is negative. This leads me to suspect that the
description is mistaken.
R=rsc
APPROVED=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=35356
CL=35377
| -rw-r--r-- | src/pkg/time/time.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/time/time.go b/src/pkg/time/time.go index 911fa82ee..bd4988aa0 100644 --- a/src/pkg/time/time.go +++ b/src/pkg/time/time.go @@ -47,7 +47,7 @@ type Time struct { Month, Day int; // Sep-17 is 9, 17 Hour, Minute, Second int; // 10:43:12 is 10, 43, 12 Weekday int; // Sunday, Monday, ... - ZoneOffset int; // seconds west of UTC + ZoneOffset int; // seconds east of UTC Zone string; } |
