(t int64)
| 32 | } |
| 33 | |
| 34 | func Int2time(t int64) string { |
| 35 | var ( |
| 36 | second, min, hours, millisecond int64 |
| 37 | ) |
| 38 | millisecond = t % 1000 |
| 39 | second = t / 1000 |
| 40 | if second > 59 { |
| 41 | min = (t / 1000) / 60 |
| 42 | second = second % 60 |
| 43 | } |
| 44 | if min > 59 { |
| 45 | hours = (t / 1000) / 3600 |
| 46 | min = min % 60 |
| 47 | } |
| 48 | return fmt.Sprintf("%d:%d:%d,%d", hours, min, second, millisecond) |
| 49 | |
| 50 | } |