date

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeUnixNano

func SafeUnixNano(t time.Time) int64

SafeUnixNano calls WeekOf() and then zeros out the hour, minute, second, nsec fields and returns the UnixNano() value.

func WeekOf

func WeekOf(t time.Time) time.Time

WeekOf takes the current time and goes backwards till it finds a Sunday, then returns that date.

Types

This section is empty.

Jump to

Keyboard shortcuts

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