timeutil

package
v0.0.79 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 4 Imported by: 4

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 added in v0.0.40

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