xtime

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Midday added in v1.7.0

func Midday() time.Time

Midday returns the time corresponding to 12:00:00 on the current local date.

func UTCMidday added in v1.7.0

func UTCMidday() time.Time

UTCMidday returns the current time adjusted to midday (12:00:00) in UTC.

func UTCYesterday

func UTCYesterday() time.Time

UTCYesterday returns the local time of yesterday with the location set to UTC.

func Yesterday

func Yesterday() time.Time

Yesterday returns the local time of yesterday.

Types

This section is empty.

Jump to

Keyboard shortcuts

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