chronos

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dur

func Dur(s string) time.Duration

func In

func In(t time.Time, tz string) time.Time

Converts [tz] to a timezone

func Now

func Now(tz string) time.Time

Returns current time, if [tz] is "" or "UTC", then returns as UTC If [tz] is "LOCAL", returns time.Time in current local time

Othwerwise, [tz] can be any valid IANA timezone db file name. eg: "America/Chicago"

Types

This section is empty.

Jump to

Keyboard shortcuts

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