- func Now() time.Time
- func Parse(value string) (time.Time, error)
- func ParseInLocation(value string, loc *time.Location) (time.Time, error)
- func SetOffset(off time.Duration)
- func StdNow() time.Time
- type Timestamp
This section is empty.
ErrUnrecognizedTime is the error that parsing failed
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.
type Timestamp int64
Timestamp is unix timestamp milliseconds
func (Timestamp) Milliseconds ¶
Milliseconds returns milliseconds of timestamp