1
0
mirror of https://github.com/golang/go synced 2024-10-03 19:21:21 -06:00
go/src/time
Rob Pike 9c4295b574 time: print zero duration as 0s, not 0
There should be a unit, and s is the SI unit name, so use that.
The other obvious possibility is ns (nanosecond), but the fact
that durations are measured in nanoseconds is an internal detail.

Fixes #14058.

Change-Id: Id1f8f3c77088224d9f7cd643778713d5cc3be5d9
Reviewed-on: https://go-review.googlesource.com/22357
Reviewed-by: Robert Griesemer <gri@golang.org>
2016-04-21 22:07:59 +00:00
..
example_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
export_test.go
export_windows_test.go time: fix registry zone info lookup on Windows 2015-05-12 14:28:40 +00:00
format_test.go all: replace strings.Index with strings.Contains where possible 2016-02-19 01:06:05 +00:00
format.go all: single space after period. 2016-03-02 00:13:47 +00:00
genzabbrs.go
internal_test.go
sleep_test.go time: deflake TestAfterQueuing 2015-05-06 19:26:27 +00:00
sleep.go all: single space after period. 2016-03-02 00:13:47 +00:00
sys_plan9.go
sys_unix.go
sys_windows.go
tick_test.go all: single space after period. 2016-03-02 00:13:47 +00:00
tick.go all: single space after period. 2016-03-02 00:13:47 +00:00
time_test.go time: print zero duration as 0s, not 0 2016-04-21 22:07:59 +00:00
time.go time: print zero duration as 0s, not 0 2016-04-21 22:07:59 +00:00
zoneinfo_abbrs_windows.go
zoneinfo_ios.go time: zoneinfo support for darwin 2015-03-03 15:37:14 +00:00
zoneinfo_plan9.go
zoneinfo_read.go all: single space after period. 2016-03-02 00:13:47 +00:00
zoneinfo_test.go all: single space after period. 2016-03-02 00:13:47 +00:00
zoneinfo_unix.go time: zoneinfo support for darwin 2015-03-03 15:37:14 +00:00
zoneinfo_windows_test.go time: handle localized time zone names 2015-08-26 04:40:59 +00:00
zoneinfo_windows.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
zoneinfo.go time: fix comment about use of Location.cacheEnd 2016-01-26 15:16:47 +00:00