utils

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Day = 24

Variables

This section is empty.

Functions

func BetweenDay

func BetweenDay(current time.Time, start time.Time) int

BetweenDay returns the number of days between two times

func BetweenTime

func BetweenTime(d1, d2 time.Time) time.Duration

BetweenTime returns the time.Duration between two times @param time.Time @param time.Time @return time.Duration

func BytesToInt64

func BytesToInt64(buf []byte) int64

func BytesToTime

func BytesToTime(buf []byte) time.Time

func Int64ToBytes

func Int64ToBytes(i int64) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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