jtime

package
v0.0.0-...-29e02a0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JTime

type JTime time.Time

func (*JTime) GobDecode

func (t *JTime) GobDecode(b []byte) error

func (JTime) GobEncode

func (t JTime) GobEncode() ([]byte, error)

func (JTime) GormDBDataType

func (t JTime) GormDBDataType(db *gorm.DB, field *schema.Field) string

GormDataType gorm common data type

func (t JTime) GormDataType() string {
	return "timestamptz"
}

func (JTime) MarshalJSON

func (t JTime) MarshalJSON() ([]byte, error)

func (*JTime) Scan

func (t *JTime) Scan(value interface{}) (err error)

for gorm v2

func (JTime) String

func (t JTime) String() string

func (JTime) ToTime

func (t JTime) ToTime() time.Time

func (*JTime) UnmarshalJSON

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

func (JTime) Value

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

Jump to

Keyboard shortcuts

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