jtime

package
v0.0.0-...-b532df3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JsonDateFormat = "2006-01-02"
)
View Source
const (
	JsonTimeFormat = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonDate

type JsonDate time.Time

func NewNowJsonDate

func NewNowJsonDate() JsonDate

func (JsonDate) GetTime

func (t JsonDate) GetTime() time.Time

func (JsonDate) MarshalText

func (t JsonDate) MarshalText() (text []byte, err error)

func (*JsonDate) Scan

func (t *JsonDate) Scan(v interface{}) error

func (JsonDate) String

func (t JsonDate) String() string

func (*JsonDate) UnmarshalJSON

func (t *JsonDate) UnmarshalJSON(data []byte) (err error)

func (JsonDate) Value

func (t JsonDate) Value() (driver.Value, error)

type JsonTime

type JsonTime time.Time

func NewNowJsonTime

func NewNowJsonTime() JsonTime

func (JsonTime) GetTime

func (t JsonTime) GetTime() time.Time

func (JsonTime) MarshalText

func (t JsonTime) MarshalText() (text []byte, err error)

func (*JsonTime) Scan

func (t *JsonTime) Scan(v interface{}) error

func (JsonTime) String

func (t JsonTime) String() string

func (*JsonTime) UnmarshalJSON

func (t *JsonTime) UnmarshalJSON(data []byte) (err error)

func (JsonTime) Value

func (t JsonTime) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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