times

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ParseLayout = "2006-01-02T15:04:05Z07:00"

Variables

This section is empty.

Functions

func ParseAlertTime

func ParseAlertTime(timeStr string) time.Time

func ParseAlertTimeUnix

func ParseAlertTimeUnix(timeStr string) int64

func TimeToUnix

func TimeToUnix(t UnixTime) int64

TimeToUnix convert time.Time to unix timestamp

Types

type UnixTime

type UnixTime interface {
	Unix() int64
}

Jump to

Keyboard shortcuts

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