timemath

package
v0.0.0-...-a400e20 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SecondsInHour = 3600
	SecondsInDay  = 86400
	HoursInDay    = 24
)

Variables

This section is empty.

Functions

func CurrentDateNumber

func CurrentDateNumber() uint32

func DateNumber

func DateNumber(t time.Time) uint32

func HourNumber

func HourNumber(t time.Time) uint32

func HourNumberAtStartOfDate

func HourNumberAtStartOfDate(dateNumber uint32) uint32

func HourNumberPlusDays

func HourNumberPlusDays(hourNumber uint32, days int) uint32

func MostRecentUTCMidnight

func MostRecentUTCMidnight(t time.Time) time.Time

func RollingStartIntervalNumberPlusDays

func RollingStartIntervalNumberPlusDays(rsin int32, days int) int32

Types

This section is empty.

Jump to

Keyboard shortcuts

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