timeutil

package
v0.0.0-...-4675295 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const DAY_SECOND = 3600 * 24
View Source
const MINUTE_SECOND = 60

Variables

This section is empty.

Functions

func GetFirstDateOfMonth

func GetFirstDateOfMonth(d time.Time) time.Time

获取传入的时间所在月份的第一天,即某月第一天的0点。如传入time.Now(), 返回当前月份的第一天0点时间。

func GetLastDateOfMonth

func GetLastDateOfMonth(d time.Time) time.Time

获取传入的时间所在月份的最后一天,即某月最后一天的0点。如传入time.Now(), 返回当前月份的最后一天0点时间。

func GetZeroTimeOfDay

func GetZeroTimeOfDay(d time.Time) time.Time

获取某一天的0点时间

func GetZeroTimeOfMinute

func GetZeroTimeOfMinute(d time.Time) time.Time

获取某一天的0点时间

func GetZeroTimeOfWeek

func GetZeroTimeOfWeek(d time.Time) time.Time

获取某一天的0点时间

func Z在今天范围

func Z在今天范围(d int) bool

获取某一天的0点时间

Types

This section is empty.

Jump to

Keyboard shortcuts

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