crosstime

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cross

func Cross(c TimeCrosser)

Cross 执行时间跨越检查,使用默认周一作为周起始日 Cross performs time crossing check with Monday as default week start day

func CrossWithWeekStartsAt

func CrossWithWeekStartsAt(c TimeCrosser, weekStartsAt string)

CrossWithWeekStartsAt 执行时间跨越检查,可指定周起始日 CrossWithWeekStartsAt performs time crossing check with specified week start day

Types

type TimeCrosser

type TimeCrosser interface {
	GetTouchedAt() time.Time
	SetTouchedAt(time.Time)
	CrossHour()
	CrossDay()
	CrossWeek()
	CrossMonth()
}

Jump to

Keyboard shortcuts

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