timeutil

package
v0.0.0-...-74e38f5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsReasonableTime

func IsReasonableTime(t time.Time) bool

Sometimes, NULL presents as a non-zero time. Consequently, checking IsZero is not enough.

func ParseTimeCheckNear

func ParseTimeCheckNear(date, format string, target time.Time, leeway time.Duration) (bool, error)

func TimeNearTime

func TimeNearTime(date time.Time, target time.Time, leeway time.Duration) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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