timehelper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBetween

func IsBetween(startDate, endDate, targetDate time.Time) bool

func IsBetweenOnly

func IsBetweenOnly(startDate, endDate, targetDate time.Time) bool

func IsSameDay

func IsSameDay(t1, t2 time.Time, ignoreTimeZone bool) bool

func SetDate

func SetDate(req time.Time, year int, month time.Month, day int) (result time.Time)

func SetDay

func SetDay(req time.Time, day int) (result time.Time)

func SetHour

func SetHour(req time.Time, hour int) (result time.Time)

func SetMin

func SetMin(req time.Time, min int) (result time.Time)

func SetMonth

func SetMonth(req time.Time, month time.Month) (result time.Time)

func SetMonthByInt

func SetMonthByInt(req time.Time, month int) (result time.Time)

func SetNsec

func SetNsec(req time.Time, nsec int) (result time.Time)

func SetSec

func SetSec(req time.Time, sec int) (result time.Time)

func SetTime

func SetTime(req time.Time, hour, min, sec int, nsec ...int) (result time.Time)

func SetYear

func SetYear(req time.Time, year int) (result 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