timeHelper

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FewDaysLater

func FewDaysLater(day int) time.Time

FewDaysLater : Give time now + some days

func FewDurationLater

func FewDurationLater(duration time.Duration) time.Time

FewDurationLater : Give time now + some time duration

func FewDurationLaterMillisecond

func FewDurationLaterMillisecond(duration time.Duration) int64

FewDurationLaterMillisecond : Give time now + some millisecond

func InTimeSpan

func InTimeSpan(start, end, check time.Time) bool

InTimeSpan : check if time given is in the given time encapsulation

func InTimeSpanNow

func InTimeSpanNow(start, end time.Time) bool

InTimeSpanNow : check if time now is in the given time encapsulation

func IsExpired

func IsExpired(expirationTime time.Time) bool

IsExpired : check if time given is expired

func SixHoursLater

func SixHoursLater() time.Time

SixHoursLater : Give time now + 6 hours

func TwentyFourHoursLater

func TwentyFourHoursLater() time.Time

TwentyFourHoursLater : Give time now + 24 hours

Types

This section is empty.

Jump to

Keyboard shortcuts

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