time

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package time provides helpers for dealing with time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndOfDay

func EndOfDay(dateTime time.Time) time.Time

EndOfDay returns the end of day of the specified date.

func NowTimeZoneIndependent

func NowTimeZoneIndependent(locationTimeZone string) time.Time

NowTimeZoneIndependent returns the time in the provided time zone but forces the time zone to UTC.

func StartOfDay

func StartOfDay(dateTime time.Time) time.Time

StartOfDay returns the start of day of the specified date.

Types

This section is empty.

Jump to

Keyboard shortcuts

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