1
0
mirror of https://github.com/golang/go synced 2024-11-18 21:14:44 -07:00
go/src/time
Pantelis Sampaziotis 575386d632 time: add examples for microseconds and milliseconds methods
This change adds testable examples for the new Microseconds and Milliseconds methods that were introduced in Go 1.13.

Fixes #34354

Change-Id: Ibdbfd770ca2192f9086f756918325f7327ce0482
GitHub-Last-Rev: 4575f48f5f
GitHub-Pull-Request: golang/go#34355
Reviewed-on: https://go-review.googlesource.com/c/go/+/195979
Reviewed-by: Alexander Rakoczy <alex@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Alexander Rakoczy <alex@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-09-17 20:11:12 +00:00
..
example_test.go time: add examples for microseconds and milliseconds methods 2019-09-17 20:11:12 +00:00
export_android_test.go
export_test.go
export_windows_test.go
format_test.go
format.go
genzabbrs.go
internal_test.go
mono_test.go
sleep_test.go
sleep.go time: clarify when draining a Timer's channel is needed 2019-07-18 20:43:28 +00:00
sys_plan9.go
sys_unix.go
sys_windows.go
tick_test.go
tick.go
time_test.go time: update TestSub to avoid future regressions 2019-08-16 19:54:57 +00:00
time.go Revert "time: optimize Sub" 2019-08-16 17:01:35 +00:00
zoneinfo_abbrs_windows.go
zoneinfo_android_test.go
zoneinfo_android.go
zoneinfo_ios.go os,time: fix tests on iOS 2019-05-01 13:53:44 +00:00
zoneinfo_js.go
zoneinfo_plan9.go
zoneinfo_read.go
zoneinfo_test.go
zoneinfo_unix.go
zoneinfo_windows_test.go
zoneinfo_windows.go
zoneinfo.go