time

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 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 LocationIndependentTime added in v0.1.9

func LocationIndependentTime(t time.Time, locationTimeZone string) time.Time

LocationIndependentTime returns the provided 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