time

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Date

func Date(t time.Time) string

Date creates a string representing the time in YYYY-MM-DD format

func StartOfDay

func StartOfDay(t time.Time) time.Time

StartOfDay trims everything after the day from the provided time

func StartOfHour

func StartOfHour(t time.Time) time.Time

StartOfHour trims everything after the hour from the provided time

func UnixNanoString

func UnixNanoString(t time.Time) string

UnixNanoString creates a string containing the Unix nano timestamp that is valid up to the limit of Unix

Types

This section is empty.

Jump to

Keyboard shortcuts

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