Documentation ¶
Index ¶
- Constants
- type Timestamp
- func (t Timestamp) Add(d time.Duration) Timestamp
- func (t Timestamp) After(t2 Timestamp) bool
- func (t Timestamp) Before(t2 Timestamp) bool
- func (t Timestamp) Equal(t2 Timestamp) bool
- func (t Timestamp) EqualToTime(t2 time.Time) bool
- func (t Timestamp) IsZero() bool
- func (t Timestamp) MarshalJSON() ([]byte, error)
- func (t Timestamp) MarshalText() (text []byte, err error)
- func (t Timestamp) Nanosecond() int
- func (t Timestamp) String() string
- func (t Timestamp) ToTime() time.Time
- func (t Timestamp) Unix() int64
- func (t Timestamp) UnixMilli() int64
- func (t *Timestamp) UnmarshalJSON(data []byte) error
- func (t *Timestamp) UnmarshalText(data []byte) error
Constants ¶
View Source
const (
Format = time.RFC3339Nano
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timestamp ¶
type Timestamp uint64
Timestamp is in milliseconds
func (Timestamp) MarshalJSON ¶
func (Timestamp) MarshalText ¶
func (Timestamp) Nanosecond ¶
func (*Timestamp) UnmarshalJSON ¶
func (*Timestamp) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.