summaryrefslogtreecommitdiff
path: root/src/pkg/time
AgeCommit message (Collapse)AuthorFilesLines
2014-11-25Imported Upstream version 1.3.3upstream/1.3.3Tianon Gravi1-15/+21
2014-06-19Imported Upstream version 1.3upstream/1.3Michael Stapelberg16-552/+779
2013-12-03Imported Upstream version 1.2upstream/1.2Michael Stapelberg18-160/+1038
2013-08-13Imported Upstream version 1.1.2upstream/1.1.2Michael Stapelberg1-0/+20
2013-05-14Imported Upstream version 1.1upstream/1.1Michael Stapelberg4-22/+39
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg12-244/+1127
2012-06-14Imported Upstream version 1.0.2upstream/1.0.2Ondřej Surý1-0/+22
2012-05-02Imported Upstream version 1.0.1upstream/1.0.1Ondřej Surý4-6/+12
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý21-1376/+3309
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý15-0/+2730
2011-09-13Imported Upstream version 60Ondřej Surý15-2512/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý11-80/+183
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý5-12/+91
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý2-8/+11
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý5-10/+46
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý4-49/+55
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý5-77/+191
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý10-352/+371
2010-06-29time: implement timezones for windowsAlex Brainman4-9/+472
Fixes issue 761. R=PeterGo, adg, rsc CC=golang-dev http://codereview.appspot.com/1121042 Committer: Russ Cox <rsc@golang.org>
2010-04-27time: remove incorrect time.ISO8601 and add time.RFC3339Micah Stetson2-54/+88
Fixes issue 734. R=rsc, r CC=golang-dev http://codereview.appspot.com/975042 Committer: Russ Cox <rsc@golang.org>
2010-04-11time: fix comment typoAndrew Gerrand1-1/+1
R=r CC=golang-dev http://codereview.appspot.com/811044
2010-03-30time: do not segment time strings by character class.Russ Cox3-173/+212
instead use pure substring matching to find template values. this makes stdZulu unnecessary and allows formats like "20060102 030405" (used in some internet protocols). this makes Parse not handle years < 0000 or > 9999 anymore. that seems like an okay price to pay, trading hypothetical functionality for real functionality. also changed the comments on the Time struct to use the same reference date as the format and parse routines. R=r CC=golang-dev http://codereview.appspot.com/833045
2010-03-30single argument panicRuss Cox1-2/+2
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041
2010-02-18time.Ticker: fix bug arising when all tickers are dead.Rob Pike2-6/+24
thanks to yglgogo for analysis. Fixes issue 593. R=rsc CC=golang-dev http://codereview.appspot.com/210044
2010-02-04time: Sleep through interruptionsChristopher Wedgwood2-2/+39
R=rsc CC=golang-dev http://codereview.appspot.com/202043 Committer: Russ Cox <rsc@golang.org>
2010-02-04Add RFC822 formats as named constants.Rob Pike3-5/+38
Make sure to print a time zone when formatting even if none is defined. Add a comment introducing lookupTimezone (not lookupTimeZone). Fixes isse 577. R=rsc CC=golang-dev http://codereview.appspot.com/196090
2010-01-29fix bug in tickRob Pike1-4/+5
Fixes issue 576. R=rsc, rog CC=golang-dev http://codereview.appspot.com/196061 Committer: Rob Pike <r@golang.org>
2010-01-29An experimental implemenation of Ticker using two goroutines for all tickers.Rob Pike1-63/+122
Feel free to suggest other approaches. R=rsc CC=cw, golang-dev http://codereview.appspot.com/193070
2010-01-19time: make tick.Stop a little more robustRuss Cox1-6/+30
R=r CC=golang-dev, jackpal http://codereview.appspot.com/186228
2010-01-15fix +0000 time zones.Rob Pike2-4/+32
Fixes issue 527. R=rsc CC=golang-dev http://codereview.appspot.com/186159
2010-01-14clean up handling of numeric time zonesRob Pike2-56/+88
allow formatting of ruby-style times. Fixes issue 518. R=rsc CC=golang-dev http://codereview.appspot.com/186119
2010-01-13don't worry about the number of spaces when parsing.Rob Pike2-11/+48
allow an underscore to stand for a space or digit if the following number is >=10. R=rsc CC=golang-dev http://codereview.appspot.com/186115
2010-01-08Add a parser to the time package, the inverse of time.FormatRob Pike2-1/+345
R=rsc CC=golang-dev http://codereview.appspot.com/183141
2010-01-07make Format about twice as fast by removing allocations, using a bytes.BufferRob Pike2-31/+28
add a benchmark R=rsc CC=golang-dev http://codereview.appspot.com/181164
2010-01-06time: fix Makefile so deps.bash is happy (fixes build)Russ Cox1-1/+1
TBR=r http://codereview.appspot.com/183133
2010-01-07New time formatter, time.Format(formatString)Rob Pike4-155/+259
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
2009-12-25Update documentation around time.Sleep to specify its precision, and suggestDevon H. O'Dell1-2/+3
a possible interface for more granular sleep times. Fixes issue #260. R=rsc, r CC=golang-dev http://codereview.appspot.com/181058 Committer: Rob Pike <r@golang.org>
2009-12-17time: add ISO 8601 time formatBen Olive2-1/+43
Fixes issue 431. R=r, rsc CC=golang-dev http://codereview.appspot.com/179079 Committer: Russ Cox <rsc@golang.org>
2009-12-151) Change default gofmt default settings forRobert Griesemer6-258/+258
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 5th and last set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180050
2009-12-02move ReadFile, WriteFile, and ReadDir into a separate io/ioutil package.Rob Pike1-2/+2
this breaks the dependency of package io on package bytes. R=rsc CC=golang-dev http://codereview.appspot.com/163085
2009-12-02time: another bug in SecondsToUTC.Russ Cox2-0/+26
added random test to look for more. Fixes issue 363. R=r, cw http://codereview.appspot.com/163071
2009-12-01time: fix handling of Jan 1 1601, 1201, 801, ...Russ Cox2-6/+7
R=r CC=hurtonm http://codereview.appspot.com/164074
2009-11-24Add benchmarks for commonly used routines.Trevor Strohman1-0/+12
R=rsc, r, r1 http://codereview.appspot.com/160046 Committer: Russ Cox <rsc@golang.org>
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-2/+2
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox1-3/+3
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-17FreeBSD-specific porting work.Devon H. O'Dell1-1/+1
cgo/libmach remain unimplemented. However, compilers, runtime, and packages are 100%. I still need to go through and implement missing syscalls (at least make sure they're all listed), but for all shipped functionality, this is done. Ship! ;) R=rsc, VenkateshSrinivas http://codereview.appspot.com/152142 Committer: Russ Cox <rsc@golang.org>
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer4-49/+49
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer5-43/+43
R=rsc, r http://go/go-review/1025029
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer3-24/+8
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-05gofmt-ify template, time, unsafe, flag, fmtRobert Griesemer1-2/+2
(replacement for CLs 1017039, 1017041, 1017040, 1018054) R=r http://go/go-review/1018060