Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnrecognizedTime = errors.New("time: unrecognized time")
ErrUnrecognizedTime is the error that parsing failed
Functions ¶
func Parse ¶
Parse parse string as time. If the layout of time is known, please use standard library time.Parse instead.
func ParseInLocation ¶
ParseInLocation is like Parse but differs in two important ways. First, in the absence of time zone information, Parse interprets a time as UTC; ParseInLocation interprets the time as in the given location. Second, when given a zone offset or abbreviation, Parse tries to match it against the Local location; ParseInLocation uses the given location.
Types ¶
type Timestamp ¶
type Timestamp int64
Timestamp is unix timestamp milliseconds
func (Timestamp) Milliseconds ¶
Milliseconds returns milliseconds of timestamp
Click to show internal directories.
Click to hide internal directories.