]> Cypherpunks repositories - gostls13.git/commit
time: add Time.Unix{Milli,Micro} and to-Time helpers UnixMicro, UnixMilli
authorConrad Irwin <conrad.irwin@gmail.com>
Wed, 17 Feb 2021 22:13:01 +0000 (14:13 -0800)
committerEmmanuel Odeke <emmanuel@orijtech.com>
Sat, 27 Mar 2021 05:38:26 +0000 (05:38 +0000)
commit49dccf141f5e315739c5517b24572fff7cb13734
tree47306fa7b6eb99f04d01c2ca4f2c11f70e61db4a
parent2de1f428570855bd59083a705f832e8bddc0eb51
time: add Time.Unix{Milli,Micro} and to-Time helpers UnixMicro, UnixMilli

Adds helper functions for users working with other systems which
represent time in milliseconds or microseconds since the Unix epoch.

Fixes #44196

Change-Id: Ibc4490b52ddec94ebd0c692cb7b52a33e4536759
Reviewed-on: https://go-review.googlesource.com/c/go/+/293349
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/time/time.go
src/time/time_test.go