gpstime

package
v3.25.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package gpstime provides utilities to work with GPS time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLeapSecond

func IsLeapSecond(d time.Duration) bool

IsLeapSecond reports whether the given time.Duration elapsed since GPS epoch (January 6, 1980 UTC) is a leap second in UTC.

func Parse

func Parse(d time.Duration) time.Time

Parse returns the UTC Time corresponding to the given time.Duration elapsed since GPS epoch (January 6, 1980 UTC).

func ToGPS

func ToGPS(t time.Time) time.Duration

ToGPS returns t as time.Duration elapsed since GPS epoch (January 6, 1980 UTC).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL