moretime

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Day = 24 * time.Hour
View Source
const HalfYear = 6 * Month
View Source
const Month = 30 * Day
View Source
const Quarter = 3 * Month
View Source
const Week = 7 * Day
View Source
const Year = 365 * Day

Variables

This section is empty.

Functions

func ConvertFromFancyTime added in v0.13.0

func ConvertFromFancyTime(fancy string) time.Duration

converts 1y to 1 year converts 2M to 2 month converts 3w to 3 week converts 4d to 4 day converts 5h to 5 hour converts 6m to 6 minute converts 7s to 7 second converts 8 to 8 millisecond

func ConvertToFancyTime

func ConvertToFancyTime(d time.Duration) string

converts to milliseconds

Types

This section is empty.

Jump to

Keyboard shortcuts

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