commit | 9418b3fdda89831e55f1d80702d6bf2f06d5438f | [log] [tgz] |
---|---|---|
author | Xi Ruoyao <xry23333@gmail.com> | Mon Dec 11 02:30:30 2017 -0500 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Wed Dec 13 16:20:35 2017 +0000 |
tree | 5311ebb81c84f8002c919e7c5ae38598f40885b7 | |
parent | 76c138986e66b22cbf82122ac886457fb5226957 [diff] |
unix: add function for converting time.Time to Timespec Add function TimeToTimespec for converting time.Time to Timespec. Fixes golang/go#23078. Change-Id: I685a4871d49131191f330b56b15bfd4f3131a9a5 Reviewed-on: https://go-review.googlesource.com/82919 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
This repository holds supplemental Go packages for low-level interactions with the operating system.
The easiest way to install is to run go get -u golang.org/x/sys
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/sys
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the sys repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/sys:” in the subject line, so it is easy to find.