humanize

package
v0.0.0-...-b6a5b4f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UnitMeasures = map[string]int64{
	"month":  2629800000,
	"week":   604800000,
	"day":    86400000,
	"hour":   3600000,
	"minute": 60000,
}

Unit represents duration unit measurements in milliseconds

Functions

func Duration

func Duration(ms int64) string

func Duration2

func Duration2(ms int64) string

HumanizeDuration converts duration in milliseconds to a human-readable format

Types

This section is empty.

Jump to

Keyboard shortcuts

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