Documentation
¶
Overview ¶
Package tsutil provides timestamp and time utilities.
Index ¶
Constants ¶
View Source
const (
// RFC3339Milli is RFC3339 with millisecond precision.
RFC3339Milli = "2006-01-02T15:04:05.000Z07:00"
)
Variables ¶
This section is empty.
Functions ¶
func ParseMillis ¶
ParseMillis returns time.Time from milliseconds since epoch.
Types ¶
type Clock ¶
type Clock struct {
// contains filtered or unexported fields
}
Clock for time increments on each access.
func NewClockAt ¶
NewClockAt creates a Clock starting at timestamp (millis).
Click to show internal directories.
Click to hide internal directories.