(ms int64)
| 40 | } |
| 41 | |
| 42 | func FormatMillisToSeconds(ms int64) string { |
| 43 | return strconv.FormatFloat(float64(ms)/float64(1000), 'f', -1, 64) |
| 44 | } |
| 45 | |
| 46 | // ParseTime parses the string into an int64, milliseconds since epoch. |
| 47 | func ParseTime(s string) (int64, error) { |