timeutils

package
v2.0.1-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 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 MillisUnixTime

func MillisUnixTime(millis int64) time.Time

MillisUnixTime converts an int64 milliseconds 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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