timeutil

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(date *time.Time, layout string) string

Format 格式化时间,失败返回空字符串 如果 date 为 nil,则返回空字符串

func GetMonday added in v1.0.4

func GetMonday() time.Time

GetMonday 获取本周周一的日期

func Greatest added in v1.0.4

func Greatest(x time.Time, times ...time.Time) time.Time

func Lowest added in v1.0.4

func Lowest(x time.Time, times ...time.Time) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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