time

package
v0.0.0-...-73b4c3b Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Timestamp

type Timestamp time.Time

Timestamp time.Time

func (Timestamp) GetBSON

func (t Timestamp) GetBSON() (interface{}, error)

GetBSON implements bson.Getter

func (*Timestamp) MarshalJSON

func (t *Timestamp) MarshalJSON() ([]byte, error)

MarshalJSON transfer timestamp to byte

func (*Timestamp) Scan

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

func (*Timestamp) SetBSON

func (t *Timestamp) SetBSON(raw bson.Raw) error

SetBSON implements bson.Setter

func (*Timestamp) Unix

func (t *Timestamp) Unix() int64

Unix get the unix time

func (*Timestamp) UnmarshalJSON

func (t *Timestamp) UnmarshalJSON(b []byte) error

UnmarshalJSON transfer byte to timestamp

func (*Timestamp) Value

func (t *Timestamp) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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