dateUtils

package
v0.0.0-...-a97389e Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DateStr

func DateStr(tm time.Time) string

func DateStrShort

func DateStrShort(tm time.Time) string

func DateStrToTimestamp

func DateStrToTimestamp(str string) (int64, error)

func DateTimeStr

func DateTimeStr(tm time.Time) string

func DateTimeStrFmt

func DateTimeStrFmt(tm time.Time, fm string) string

func DateTimeStrLong

func DateTimeStrLong(tm time.Time) string

func TimeStr

func TimeStr(tm time.Time) string

func TimeStrToTimestamp

func TimeStrToTimestamp(str string) int64

func UnitToDate

func UnitToDate(unit int64) (date time.Time, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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