timeutil

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginOfDay

func BeginOfDay(now time.Time) time.Time

BeginOfDay 获取一天的起始时间

func BeginOfHour

func BeginOfHour(now time.Time) time.Time

BeginOfHour begin of hour

func BeginOfMinute

func BeginOfMinute(now time.Time) time.Time

BeginOfMinute begin of minute

func BeginOfMonth

func BeginOfMonth(now time.Time) time.Time

BeginOfMonth 获取月的起始时间

func BeginOfWeek

func BeginOfWeek(now time.Time) time.Time

BeginOfWeek 获取一周的起始时间

func BeginOfYear

func BeginOfYear(now time.Time) time.Time

BeginOfYear beginning of year

func EndOfDay

func EndOfDay(now time.Time) time.Time

EndOfDay 获取一天的结束时间

func EndOfHour

func EndOfHour(now time.Time) time.Time

EndOfHour end of hour

func EndOfMinute

func EndOfMinute(now time.Time) time.Time

EndOfMinute end of minute

func EndOfMonth

func EndOfMonth(now time.Time) time.Time

EndOfMonth 获取月的结束时间

func EndOfWeek

func EndOfWeek(now time.Time) time.Time

EndOfWeek 获取一周的结束时间

func EndOfYear

func EndOfYear(now time.Time) time.Time

EndOfYear end of year

Types

This section is empty.

Jump to

Keyboard shortcuts

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