dates

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDayEnd

func GetDayEnd(d time.Time) time.Time

GetDayEnd returns specified day end time.

func GetDayStart

func GetDayStart(d time.Time) time.Time

GetDayStart returns specified day start time.

func GetTimeAddDays

func GetTimeAddDays(d time.Time, days int) time.Time

GetTimeAddDays returns specified time by add days.

func GetTimeAddHours

func GetTimeAddHours(d time.Time, hours int) time.Time

GetTimeAddHours returns specified time by add hours.

func GetTimeAddMinutes

func GetTimeAddMinutes(d time.Time, minutes int) time.Time

GetTimeAddMinutes returns specified time by add minutes.

func GetTimeAddMonths

func GetTimeAddMonths(d time.Time, months int) time.Time

GetTimeAddMonths returns specified time by add months.

func GetTimeAddSeconds

func GetTimeAddSeconds(d time.Time, seconds int) time.Time

GetTimeAddSeconds returns specified time by add seconds.

func GetTimeAddYears

func GetTimeAddYears(d time.Time, years int) time.Time

GetTimeAddYears returns specified time by add years.

func GetTimeSubDays added in v1.5.2

func GetTimeSubDays(t1, t2 time.Time) int

GetTimeSubDays returns number of days before two times 1. When t1>t2, the result is negative; 2. When t1=t2, the result is 0; 3. When t1<t2, the result is positive.

func GetTodayEnd

func GetTodayEnd() time.Time

GetTodayEnd returns today end time.

func GetTodayStart

func GetTodayStart() time.Time

GetTodayStart returns today start time.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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