Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 709 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 709 Bytes

timex - A Go time extension library

Build Status codecov

Install

go get github.com/osechet/timex

Features

The purpose of the library is to provide several extensions to the standard Go time library. For the moment, only GPS time conversion is provided.

Example

GPS

// Display the GPS time of the current time, in microseconds
fmt.Println(int64(timex.GpsTime(time.Now()).Gps() / time.Microsecond))

Testing

go test is used for testing.