timeutil

package
v0.0.47 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 4 Imported by: 1

README

timeutil

The package contains various helpers to interact with time

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsToTime

func MsToTime(i64 interface{}) time.Time

MsToTime converts uint64/int64 milliseconds to go time.Time

func ParseDuration

func ParseDuration(s string) (time.Duration, error)

ParseDuration is similar to time.ParseDuration but also supports days unit if the unit is omitted, it defaults to seconds

func ParseUnixTimestamp

func ParseUnixTimestamp(s string) (time.Time, error)

func RFC3339ToTime

func RFC3339ToTime(s interface{}) (time.Time, error)

RFC3339ToTime converts RFC3339 (standard extended go) to time

func SToTime

func SToTime(i64 interface{}) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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