timeutil

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLastMonthsBoundaries

func GetLastMonthsBoundaries() (time.Time, time.Time)

GetLastMonthsBoundaries returns the beginning and end of last month as `time.Time`.

func MsToHours

func MsToHours(ms int) float64

MsToHours converts milliseconds hours.

func TimeToDateStr

func TimeToDateStr(time time.Time) string

TimeToDateStr formats the given `time` to a `"YYYY-MM-DD"` string

Types

This section is empty.

Jump to

Keyboard shortcuts

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