Package unixtime provides types for unix time, for the Go programming language. Note that the Go built-in package "time" has some support for **unix time**. But, lacks types for the different formats of unix time: unix time seconds, unix time milliseconds, unix time microseconds.
The Go built-in package
"time" just has each of them as an int64.
- Go 100%
| errors.go | encoding.TextUnmarshaler | |
| go.mod | parse | |
| go.sum | parse | |
| LICENSE | initial commits | |
| microseconds.go | encoding.TextMarshaler | |
| microseconds_test.go | microseconds | |
| milliseconds.go | encoding.TextMarshaler | |
| milliseconds_test.go | milliseconds | |
| nanoseconds.go | encoding.TextMarshaler | |
| nanoseconds_test.go | spacing | |
| parse.go | parse | |
| parse_microseconds_test.go | parse | |
| parse_milliseconds_test.go | parse | |
| parse_nanoseconds_test.go | parse | |
| parse_seconds_test.go | parse | |
| README.md | initial commits | |
| seconds.go | encoding.TextMarshaler | |
| seconds_test.go | seconds | |
go-unixtime
Package unixtime provides types for unix time, for the Go programming language.
Note that the Go built-in package "time" has some support for unix time.
But, lacks types for the different formats of unix time: unix time seconds, unix time milliseconds, unix time microseconds.
The Go built-in package "time" just has each of them as an int64.
Documention
Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-unixtime
Import
To import package unixtime use import code like the following:
import "github.com/reiver/go-unixtime"
Installation
To install package unixtime do the following:
GOPROXY=direct go get github.com/reiver/go-unixtime
Author
Package unixtime was written by Charles Iliya Krempeaux