antonmedv / countdown

Terminal countdown timer
MIT License
1.07k stars 110 forks source link

1h2m3s will be format to 2m3s #7

Closed shaohui10086 closed 5 years ago

shaohui10086 commented 5 years ago

https://github.com/antonmedv/countdown/blob/f9011555776dc89f944de398334b555c82b52f25/main.go#L56

d.Hours() will always return 0, because it is not the origin input

antonmedv commented 5 years ago

Can you send PR to fix it?

mingrammer commented 5 years ago

Sorry, it was caused by my mistake.

mingrammer commented 5 years ago

I fixed it with #8

antonmedv commented 5 years ago

Thanks!