Skip to content

Commit

Permalink
Add: ConvertSecondsToMinutes function
Browse files Browse the repository at this point in the history
  • Loading branch information
Wraient committed Dec 18, 2024
1 parent 2808d8e commit 075c06a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,7 @@ func FormatTime(seconds int) string {
}
return fmt.Sprintf("%d:%02d", minutes, remainingSeconds)
}

func ConvertSecondsToMinutes(seconds int) int {
return seconds / 60
}

0 comments on commit 075c06a

Please sign in to comment.