timeTool

package
v1.1.884 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Day

func Day() string

func FormatTime added in v1.1.78

func FormatTime(t time.Time) string

func Hour

func Hour() string

func LastMonth

func LastMonth() string

LastMonth 返回上个月的年月格式(例如:202312)

func LastWeek

func LastWeek() string

func LocalNow added in v0.5.6

func LocalNow() time.Time

func Location deprecated added in v0.5.6

func Location() *time.Location

Deprecated: use TZBeijing instead

func MidnightToday added in v0.4.7

func MidnightToday() time.Time

func MidnightTody

func MidnightTody() time.Time

func Minute

func Minute() string

func Month

func Month() string

func Now added in v1.1.52

func Now() time.Time

func ParseMillisecond added in v1.1.78

func ParseMillisecond(ts int64) time.Time

func ParseSecond

func ParseSecond(ts int64) time.Time

func ParseTimeStr added in v1.1.78

func ParseTimeStr(timeStr string) (time.Time, error)

func Second

func Second() string

func TZBeijing added in v1.1.81

func TZBeijing() *time.Location

func Week

func Week() string

func WeekByTime added in v1.1.74

func WeekByTime(t time.Time) string

func WeekDay

func WeekDay() time.Weekday

func Year

func Year() string

Types

This section is empty.

Directories

Path Synopsis
tm

Jump to

Keyboard shortcuts

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