duration

package
v0.0.0-...-fbb1375 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EffectTimes

func EffectTimes(start, end, amStart, amEnd, pmStart, pmEnd string) float64

Types

type CountTime

type CountTime struct {
	Start   time.Time // 请假开始时间
	End     time.Time // 请假结束时间
	AmStart time.Time // 早上上班时间
	AmEnd   time.Time // 早上下班时间
	PmStart time.Time // 下午上班时间
	PmEnd   time.Time // 下午下班时间
	// contains filtered or unexported fields
}

CountTime 计算有效的请假时间,调休时间。

func NewCountTime

func NewCountTime(start, end, amStart, amEnd, pmStart, pmEnd string) *CountTime

NewCountTime 生成实例。

func (*CountTime) EffectTime

func (c *CountTime) EffectTime() float64

EffectTime 计算有效时间。

Jump to

Keyboard shortcuts

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