FormatTimeModel returns a human readable version of the input time.
(t model.Time)
| 36 | |
| 37 | // FormatTimeModel returns a human readable version of the input time. |
| 38 | func FormatTimeModel(t model.Time) string { |
| 39 | return TimeFromMillis(int64(t)).String() |
| 40 | } |
| 41 | |
| 42 | func FormatMillisToSeconds(ms int64) string { |
| 43 | return strconv.FormatFloat(float64(ms)/float64(1000), 'f', -1, 64) |
no test coverage detected