FormatTime converts a time to a string acceptable by the Prometheus API.
(t time.Time)
| 1297 | |
| 1298 | // FormatTime converts a time to a string acceptable by the Prometheus API. |
| 1299 | func FormatTime(t time.Time) string { |
| 1300 | return strconv.FormatFloat(float64(t.Unix())+float64(t.Nanosecond())/1e9, 'f', -1, 64) |
| 1301 | } |
no outgoing calls