Time formatting in Go
A little cheat sheet to help remember the Go time formatting syntax.
A little cheat sheet to help remember the Go time formatting syntax.
Huh? 😕
Well, a mechanic usually wouldn’t give you a time estimate in seconds, but a tool I am using prints something like this at the end:
The simulation took 54227.9 seconds in CPU time.
That triggered me to write a “little” script to convert seconds to human time i.e. time in days, hours, minutes and seconds.