datetime

package
v1.0.28 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateTime

type DateTime struct {
	time.Time
}

func FromTime added in v1.0.18

func FromTime(t time.Time) DateTime

func New added in v1.0.18

func New(year, month, day, hour, minute, second int) DateTime

func Now added in v1.0.18

func Now() DateTime

func (DateTime) After added in v1.0.19

func (dt DateTime) After(other DateTime) bool

func (DateTime) Before added in v1.0.19

func (dt DateTime) Before(other DateTime) bool

func (DateTime) Compare added in v1.0.19

func (dt DateTime) Compare(other DateTime) int

func (DateTime) Equal added in v1.0.19

func (dt DateTime) Equal(other DateTime) bool

func (DateTime) MarshalJSON added in v1.0.23

func (dt DateTime) MarshalJSON() ([]byte, error)

func (*DateTime) Scan added in v1.0.21

func (dt *DateTime) Scan(src any) error

func (DateTime) String added in v1.0.11

func (dt DateTime) String() string

func (DateTime) Sub added in v1.0.19

func (dt DateTime) Sub(other DateTime) time.Duration

func (*DateTime) UnmarshalBind

func (dt *DateTime) UnmarshalBind(value string) error

func (*DateTime) UnmarshalJSON added in v1.0.23

func (dt *DateTime) UnmarshalJSON(data []byte) error

func (DateTime) Value added in v1.0.12

func (dt DateTime) Value() (driver.Value, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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