type github.com/prometheus/common/model.Time
34 uses
github.com/prometheus/common/model (current package)
time.go#L36: Earliest = Time(math.MinInt64)
time.go#L39: Latest = Time(math.MaxInt64)
time.go#L44: type Time int64
time.go#L48: Start, End Time
time.go#L52: func Now() Time {
time.go#L58: func TimeFromUnix(t int64) Time {
time.go#L59: return Time(t * second)
time.go#L64: func TimeFromUnixNano(t int64) Time {
time.go#L65: return Time(t / nanosPerTick)
time.go#L69: func (t Time) Equal(o Time) bool {
time.go#L74: func (t Time) Before(o Time) bool {
time.go#L79: func (t Time) After(o Time) bool {
time.go#L84: func (t Time) Add(d time.Duration) Time {
time.go#L85: return t + Time(d/minimumTick)
time.go#L89: func (t Time) Sub(o Time) time.Duration {
time.go#L94: func (t Time) Time() time.Time {
time.go#L100: func (t Time) Unix() int64 {
time.go#L106: func (t Time) UnixNano() int64 {
time.go#L114: func (t Time) String() string {
time.go#L119: func (t Time) MarshalJSON() ([]byte, error) {
time.go#L124: func (t *Time) UnmarshalJSON(b []byte) error {
time.go#L132: *t = Time(v * second)
time.go#L156: *t = Time(v+va) * -1
time.go#L158: *t = Time(v + va)
value.go#L79: Timestamp Time
value.go#L116: Timestamp Time `json:"timestamp"`
value.go#L303: Timestamp Time `json:"timestamp"`
value.go#L336: Timestamp Time `json:"timestamp"`
github.com/prometheus/common/expfmt
decode.go#L37: Timestamp model.Time
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |