timejuice

package
v1.12.6 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Description: Time related helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustDateToTimezone

func AdjustDateToTimezone(d time.Time, timeZoneID string, toUTC bool) (time.Time, error)

AdjustDateToTimezone adjusts the given date to the given timezone with the option to convert it to UTC.

func IsUTCDate

func IsUTCDate(d time.Time) bool

IsUTCDate checks if the given date is in UTC format.

func NowWithPrecision

func NowWithPrecision(precision time.Duration) time.Time

NewWithPrecision returns a new now time.Time (UTC) with the given precision.

Types

This section is empty.

Jump to

Keyboard shortcuts

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