timeTool

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFirstSecondOfDay

func GetFirstSecondOfDay(date time.Time) time.Time

func GetFirstSecondOfMonth

func GetFirstSecondOfMonth(date time.Time) time.Time

func GetFirstSecondOfWeek

func GetFirstSecondOfWeek(currentTime time.Time) time.Time

获取本周一的第一秒

func GetFirstSecondOfYear

func GetFirstSecondOfYear(currentTime time.Time) time.Time

获取今年的第一秒

func GetLastSecondOfMonth

func GetLastSecondOfMonth(date time.Time) time.Time

func GetLastSecondOfWeek

func GetLastSecondOfWeek(t time.Time) time.Time

func GetLastSecondOfYear

func GetLastSecondOfYear(currentTime time.Time) time.Time

func SplitDays

func SplitDays(startDate, endDate time.Time) []time.Time

func SplitMonths

func SplitMonths(startDate, endDate time.Time) [][2]time.Time

func ToDay

func ToDay(t 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