timeutils

package
v1.34.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationString

func DurationString(start, end time.Time) string

func GetDaysDiff added in v1.27.0

func GetDaysDiff(start, end time.Time) int

getDaysDiff returns days difference between two date.

func GetTimeForMillis

func GetTimeForMillis(unixMillis int64) time.Time

func GetUserTimezone added in v1.27.0

func GetUserTimezone(user *model.User) (*time.Location, error)

func IsSameDay added in v1.27.0

func IsSameDay(time1, time2 time.Time) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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