timeutils

package
v2.0.2-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package timeutils provides utilities supplementing the standard 'time' package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentTimeMillis

func CurrentTimeMillis() int64

func Format added in v2.0.2

func Format(time time.Time) string

func MillisUnixTime

func MillisUnixTime(millis int64) time.Time

MillisUnixTime converts an int64 milliseconds to a unixTime

func SecondsUnixTime added in v2.0.2

func SecondsUnixTime(seconds int64) time.Time

SecondsUnixTime converts an int64 seconds to a unixTime

func SinceInMilliseconds

func SinceInMilliseconds(start time.Time) int64

func UnixMillis

func UnixMillis(timeString string) int64

UnixMillis converts a {Mon, 02 Jan 2006 15:04:05 GMT} time to an int64 milliseconds.

func UnixSeconds added in v2.0.2

func UnixSeconds(timeString string) int64

UnixSeconds converts a {Mon, 02 Jan 2006 15:04:05 GMT} time to an int64 seconds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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