Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Millisecs ¶ added in v1.5.0
Millisecs is used to get a time from an js number that represents a timestamp in milliseconds
func NewMillisecs ¶ added in v1.5.0
NewMillisecs returns a Millisecs instance with secs converted to millisecs (*1000)
func (Millisecs) MarshalJSON ¶ added in v1.5.0
func (*Millisecs) UnmarshalJSON ¶ added in v1.5.0
type Unix ¶
Unix converts unix times to time.Time
func (Unix) MarshalJSON ¶
MarshalJSON takes the Unix() seconds from the time and uses strconv.FormatInt() to return the string of digits
func (*Unix) UnmarshalJSON ¶
UnmarshalJSON for Unix converts the []byte value to int64 seconds and than constructs the time with time.Unix()
Click to show internal directories.
Click to hide internal directories.