Documentation ¶
Index ¶
- type Time
- func (t Time) Add(d time.Duration) time.Time
- func (t Time) Format(layout string) string
- func (t Time) MarshalJSON() ([]byte, error)
- func (t Time) String() string
- func (t Time) Time() time.Time
- func (t Time) UTC() time.Time
- func (t Time) Unix() int64
- func (t *Time) UnmarshalJSON(s []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Time ¶
func (Time) MarshalJSON ¶
MarshalJSON is used to convert the timestamp to JSON
func (Time) Unix ¶
Unix returns t as a Unix time, the number of seconds elapsed since January 1, 1970 UTC. The result does not depend on the location associated with t.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON is used to convert the timestamp from JSON
Click to show internal directories.
Click to hide internal directories.