timezone

package
v2.0.20 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Timezone

type Timezone string

func ByNameStr

func ByNameStr(timezoneStr string) (result Timezone, ok bool)

ByNameStr lookup for timezone by name string

func ByNameStrErr

func ByNameStrErr(timezoneStr string) (result Timezone, err error)

ByNameStrErr lookup for timezone by name with error return type

func (Timezone) String

func (name Timezone) String() string

String implementation of Stringer interface

func (*Timezone) UnmarshalJSON

func (name *Timezone) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshall implementation for timezone

func (Timezone) Validate

func (name Timezone) Validate() (err error)

Validate implementation of ozzo-validation Validate interface

func (Timezone) Value

func (name Timezone) Value() (value driver.Value, err error)

Value implementation of driver.Valuer

Jump to

Keyboard shortcuts

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