MCPcopy Create free account
hub / github.com/prometheus/common / String

Method String

model/time.go:115–117  ·  view source on GitHub ↗

String returns a string representation of the Time.

()

Source from the content-addressed store, hash-verified

113
114// String returns a string representation of the Time.
115func (t Time) String() string {
116 return strconv.FormatFloat(float64(t)/float64(second), 'f', -1, 64)
117}
118
119// MarshalJSON implements the json.Marshaler interface.
120func (t Time) MarshalJSON() ([]byte, error) {

Callers 1

MarshalJSONMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected