time

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateTimeTimeZoneFormat       = "2006-01-02T15:04:05.000Z"
	DateFormat                   = "2006-01-02"
	DateTimeFormat               = "2006-01-02 15:04:05"
	DateHourMinuteFormat         = "2006-01-02 15:04"
	DateHourMinuteTimeZoneFormat = "2006-01-02T15:04"
	YearMonthFormat              = "2006-01"
)

Variables

This section is empty.

Functions

func GetGmtByCountryCode added in v1.0.8

func GetGmtByCountryCode(countryCode string) int

func GetLocalizedTimeNowByCountryCode added in v1.0.7

func GetLocalizedTimeNowByCountryCode(countryCode string) (time.Time, error)

func GetStringLocalizedTimeNowByCountryCode added in v1.0.7

func GetStringLocalizedTimeNowByCountryCode(countryCode string) (string, error)

func GetTimeNow

func GetTimeNow(timeZone string) (time.Time, error)

func GetTimeNowString

func GetTimeNowString(format, timeZone string, onlyDate bool) (string, error)

GetTimeNowString return the date now formatted in time zone

Types

This section is empty.

Jump to

Keyboard shortcuts

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