datetimes

package
v1.0.1025 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datetimes

type Datetimes struct {
	// 开始时间 / start time
	Start datebin.Datebin

	// 结束时间 / end time
	End datebin.Datebin
}

*

  • 时间范围 / Datetimes *
  • @create 2024-1-6
  • @author deatil

func New

func New(start, end datebin.Datebin) Datetimes

New Datetimes

func NewDatetimes

func NewDatetimes(start, end datebin.Datebin) Datetimes

New Datetimes

func (Datetimes) Eq

func (this Datetimes) Eq(d Datetimes) bool

a 是否等于 d if a eq d

func (Datetimes) Gt

func (this Datetimes) Gt(d Datetimes) bool

a 是否大于 d if a gt d

func (Datetimes) Gte

func (this Datetimes) Gte(d Datetimes) bool

a 是否大于等于 d if a Gte d

func (Datetimes) Intersection

func (this Datetimes) Intersection(x Datetimes) Datetimes

获取交集数据 get Intersection times

func (Datetimes) IsContain

func (this Datetimes) IsContain(x Datetimes) bool

a 是否包含 x if a is Contain x

func (Datetimes) Length

func (this Datetimes) Length() int64

获取范围长度 get Length

func (Datetimes) LengthWithNanosecond

func (this Datetimes) LengthWithNanosecond() int64

获取范围长度带纳米 get Length With Nanosecond

func (Datetimes) Lt

func (this Datetimes) Lt(d Datetimes) bool

a 是否小于 d if a Lt d

func (Datetimes) Lte

func (this Datetimes) Lte(d Datetimes) bool

a 是否小于等于 d if a Lte d

func (Datetimes) Ne

func (this Datetimes) Ne(d Datetimes) bool

a 是否不等于 d if a Not eq d

func (Datetimes) Union

func (this Datetimes) Union(x Datetimes) []Datetimes

获取并集数据 get Union times

Jump to

Keyboard shortcuts

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