itime

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateTime = "2006-01-02 15:04:05"
	Date     = "2006-01-02"
)

Variables

This section is empty.

Functions

func BeforeDayDate

func BeforeDayDate(day int) time.Time

func CtxAfterSecDeadline added in v0.2.8

func CtxAfterSecDeadline(ctx context.Context, defSec int32) time.Duration

CtxAfterSecDeadline if not deadline, return defSec, if defSec <= 0, return int32 max sec duration

func DateString

func DateString(t time.Time, layout ...string) string

func ToMill

func ToMill(t time.Time) int64

func UnixSecToDate

func UnixSecToDate(sec int64) time.Time

func YesterdayDate

func YesterdayDate() time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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