jktime

package
v0.0.0-...-a9e9222 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimeCompare

type TimeCompare struct {
	Items []TimeItems
}

func NewTimeCompare

func NewTimeCompare(timestr string) (*TimeCompare, error)

func NewTimeCompareFile

func NewTimeCompareFile(filename string) (*TimeCompare, error)

func (*TimeCompare) DebugPrint

func (tc *TimeCompare) DebugPrint() string

func (*TimeCompare) InNow

func (tc *TimeCompare) InNow() bool

func (*TimeCompare) InTime

func (tc *TimeCompare) InTime(tm time.Time) bool

type TimeItem

type TimeItem struct {
	Year   int `json:"year"`
	Month  int `json:"month"`
	Day    int `json:"day"`
	Hour   int `json:"hour"`
	Minute int `json:"minute"`
	Second int `json:"second"`
}

type TimeItems

type TimeItems struct {
	Start TimeItem `json:"startTime"`
	End   TimeItem `json:"endTime"`
	Week  []int    `json:"week"` // monday start 1-7
}

Jump to

Keyboard shortcuts

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