util

package
v0.0.0-...-b066e35 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DateNumberToString

func DateNumberToString(value int) string

func DateToString

func DateToString(dt time.Time) string

func DaysFromSeconds

func DaysFromSeconds(s int) int

func GetDatesofWeek

func GetDatesofWeek(firstDayWeek time.Weekday, refDate time.Time) [7]time.Time

func MonthToInt

func MonthToInt(value time.Month) (int, error)

func MonthsFromSeconds

func MonthsFromSeconds(s int) int

func RoundTime

func RoundTime(input float64) int

func StringToMonth

func StringToMonth(value string) (mnt time.Month, err error)

func StringToWeekDay

func StringToWeekDay(value string) (wkday time.Weekday, err error)

func WeeksFromSeconds

func WeeksFromSeconds(s int) int

func YearsFromSeconds

func YearsFromSeconds(s int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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