timeutil

package
v0.11.14 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 4 Imported by: 4 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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