Skip to content

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

internettime

Package to convert time to Internet Time (.beats) and the other way

Convert A Duration String to Internet Time

funcDurationToInternetTime(durationStrstring) (float64, error)

Example:

internetTimeDuration:=DurationToInternetTime("1h10m12s")

Convert Internet Time to Standard Time

funcInternetToStandardTime(beatsfloat64) time.Time

Example:

standardTime:=InternetToStandardTime(413)

Convert Standard Time to Internet Time

funcStandardToInternetTime(t time.Time) float64

Example:

now:=time.Now()
internetTime:=StandardToInternetTime(now)

About

Package to convert time to Internet Time (Swatch .beats) and the other way

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages