btime

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstDateOfMonth

func FirstDateOfMonth(d time.Time) time.Time

指定时间所在月的第一天

func FirstDateOfNextMonth

func FirstDateOfNextMonth(d time.Time) time.Time

指定时间所在月下个月的第一天

func LastDateOfMonth

func LastDateOfMonth(d time.Time) time.Time

指定时间所在月的最后一天

func TheQuarterFirstDayAndLastDay

func TheQuarterFirstDayAndLastDay(d time.Time) (first time.Time, last time.Time)

获取季度的第一天和最后一天

func TimeToMysqlString

func TimeToMysqlString(d time.Time) string

func YearFirstDayAndLastDay

func YearFirstDayAndLastDay(d time.Time) (first time.Time, last time.Time)

YearFirstDayAndLastDay 获取指定时间的 1月1日 和 12 月 31 日

func ZeroTime

func ZeroTime(d time.Time) time.Time

获取某一天的 00:00:00

Types

This section is empty.

Jump to

Keyboard shortcuts

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