summaryrefslogtreecommitdiff
path: root/src/pkg/time
AgeCommit message (Collapse)AuthorFilesLines
2009-10-27files that are okay from the last gofmt roundRuss Cox2-4/+4
R=gri http://go/go-review/1015011
2009-10-08more lgtm files from gofmtRuss Cox3-23/+22
R=gri OCL=35485 CL=35488
2009-10-07apply gofmt to rand reflect regexp rpc runtime sort strconv strings sync ↵Russ Cox4-132/+125
syscall testing time unicode unsafe utf8 R=gri DELTA=1409 (79 added, 24 deleted, 1306 changed) OCL=35415 CL=35437
2009-10-06Change description of time.Time.ZoneOffset to specify east is +ve.Adam Langley1-1/+1
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
2009-09-23expand ticker interface to allow a client to shut down a ticker.Rob Pike2-18/+48
existing interface still works. R=rsc DELTA=50 (32 added, 2 deleted, 16 changed) OCL=34930 CL=34932
2009-09-17unused importsRuss Cox2-6/+0
R=r OCL=34731 CL=34731
2009-09-15more "declared and not used".Russ Cox2-2/+2
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
2009-09-14fix "declared and not used" errors in non-test code.Russ Cox2-5/+5
R=r DELTA=112 (6 added, 57 deleted, 49 changed) OCL=34610 CL=34610
2009-09-14do not crash printing the zero value for time.Time.Russ Cox1-1/+2
R=r DELTA=2 (1 added, 0 deleted, 1 changed) OCL=34605 CL=34608
2009-08-12convert low-level (used by testing) packages toRuss Cox5-76/+11
whole-package compilation. new Makefiles, tests now in separate package bytes flag fmt io math once os reflect strconv sync time utf8 delete import "xxx" in package xxx. inside package xxx, xxx is not declared anymore so s/xxx.//g delete file and package level forward declarations. note the new internal_test.go and sync and strconv to provide public access to internals during testing. the installed version of the package omits that file and thus does not open the internals to all clients. R=r OCL=33065 CL=33097
2009-08-10remove unnecessary pkg. referencesRuss Cox2-6/+6
R=r DELTA=95 (0 added, 0 deleted, 95 changed) OCL=33012 CL=33012
2009-08-04get function calls out of the way beforeRuss Cox1-4/+4
allocating registers in shift and div. fix behavior when res == a reserved register. R=ken OCL=32765 CL=32767
2009-06-26Getenv: almost no one wants the error, so make it return a string that may ↵Rob Pike1-1/+1
be empty. Getenverror is the new name for the old routine that returns an error too. R=rsc DELTA=35 (7 added, 7 deleted, 21 changed) OCL=30818 CL=30821
2009-06-25Change os.Error convention:Russ Cox3-47/+23
echo back context of call in error if likely to be useful. For example, if os.Open("/etc/passwd", os.O_RDONLY) fails with syscall.EPERM, it returns as the os.Error &PathError{ Op: "open", Path: "/etc/passwd" Error: os.EPERM } which formats as open /etc/passwd: permission denied Not converted: datafmt go/... google/... regexp tabwriter template R=r DELTA=1153 (561 added, 156 deleted, 436 changed) OCL=30738 CL=30781
2009-06-22introduce os.EOF and io.ErrUnexpectedEOF.Russ Cox1-20/+1
remove io.ErrEOF. rename io.FullRead to io.ReadFull, to match ReadAtLeast and ReadAll. remove io.FullReader, because it is now unused. R=r DELTA=295 (88 added, 105 deleted, 102 changed) OCL=30544 CL=30588
2009-06-09mv src/lib to src/pkgRob Pike7-0/+927
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102