timeutil

package
v0.1.9-patch-02 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MinsOfDay

func MinsOfDay(str string) int

MinsOfDay returns minutes since start of day for a timestamp in format `15:30` eg. MinsOfDay("02:30") -> 150 returns 0 for a timestamp not in format HH:MM

func Now

func Now() time.Time

Now returns the current time in UTC.

func StartOfDay

func StartOfDay(t time.Time) time.Time

StartOfDay returns start of the day

Types

This section is empty.

Jump to

Keyboard shortcuts

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