day

package
v0.0.0-...-fbaabe3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTimezone

func GetTimezone() (name string, offset int)

func TimeZones

func TimeZones() []string

func Timezone

func Timezone(name string, offset ...int)

func TimezoneSystem

func TimezoneSystem()

func TimezoneUTC

func TimezoneUTC()

Types

type Datetime

type Datetime struct {
	time.Time
}

func Make

func Make() *Datetime

func Now

func Now() *Datetime

func Of

func Of(value interface{}, formats ...string) *Datetime

func (*Datetime) Load

func (d *Datetime) Load(value interface{}, formats ...string) *Datetime

func (*Datetime) MarshalJSON

func (d *Datetime) MarshalJSON() ([]byte, error)

func (*Datetime) Scan

func (d *Datetime) Scan(src interface{}) error

func (*Datetime) Timezone

func (d *Datetime) Timezone(name string, offset ...int) *Datetime

func (*Datetime) UnmarshalJSON

func (d *Datetime) UnmarshalJSON(data []byte) error

func (*Datetime) Value

func (d *Datetime) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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