Make time played output nicer #34

Open
opened 2023-08-20 21:51:30 +01:00 by forquare · 0 comments
forquare commented 2023-08-20 21:51:30 +01:00 (Migrated from github.com)

Currently we use time.Duration to "nicely" print the time played per player:

forquare: 382h51m53s

But as you can see, 382 hours doesn't really mean anything (it's almost 16 days, fyi).

Since we don't store anything as time.Duration (it's all measured in seconds), write a small utility to better format the time played.

Currently we use time.Duration to "nicely" print the time played per player: ``` forquare: 382h51m53s ``` But as you can see, 382 hours doesn't really mean anything (it's almost 16 days, fyi). Since we don't store anything as time.Duration (it's all measured in seconds), write a small utility to better format the time played.
Sign in to join this conversation.
No description provided.