(i int, includeHours bool)
| 121 | } |
| 122 | |
| 123 | func SecondsToTimeString(i int, includeHours bool) string { |
| 124 | if includeHours { |
| 125 | return fmt.Sprintf("%02d:%02d:%02d", i/3600, (i%3600)/60, i%60) |
| 126 | } |
| 127 | return fmt.Sprintf("%02d:%02d", i/60, i%60) |
| 128 | } |
| 129 | |
| 130 | func GetTimeFromText(s string) (int, int) { |
| 131 | s = strings.ReplaceAll(s, " - ", "") |