diff options
author | Andrew Cady <d@cryptonomic.net> | 2022-09-15 12:38:44 -0400 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2022-09-15 12:38:44 -0400 |
commit | 9202f52c1bf23a1e64e26f8bb4ec325431fa4146 (patch) | |
tree | e4dff1c756b664d17118b0e0776e6397b594cc65 | |
parent | 7e0e2dffea94119451066a83ab54b1f3961cb02d (diff) |
show minutes
-rwxr-xr-x | countdown.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/countdown.hs b/countdown.hs index 55962c2..d91834d 100755 --- a/countdown.hs +++ b/countdown.hs | |||
@@ -136,13 +136,16 @@ countdownWidget isSimulated t = | |||
136 | <=> | 136 | <=> |
137 | (hCenter $ hBox | 137 | (hCenter $ hBox |
138 | [ (borderWithLabel (str $ printf "%d" currentYear) | 138 | [ (borderWithLabel (str $ printf "%d" currentYear) |
139 | (str $ printf "%d day%s remain%s\n%s hour%s remain%s\n%s second%s remain%s" | 139 | (str $ printf "%d day%s remain%s\n%s hour%s remain%s\n%s minute%s remain%s\n%s second%s remain%s" |
140 | daysLeft | 140 | daysLeft |
141 | (pluralize daysLeft) | 141 | (pluralize daysLeft) |
142 | (pluralizeVerb daysLeft) | 142 | (pluralizeVerb daysLeft) |
143 | (commasF 2 hoursLeft) | 143 | (commasF 2 hoursLeft) |
144 | (pluralize $ (floor hoursLeft :: Integer)) | 144 | (pluralize $ (floor hoursLeft :: Integer)) |
145 | (pluralizeVerb $ (floor hoursLeft :: Integer)) | 145 | (pluralizeVerb $ (floor hoursLeft :: Integer)) |
146 | (commasF 2 minutesLeft) | ||
147 | (pluralize $ (floor minutesLeft :: Integer)) | ||
148 | (pluralizeVerb $ (floor minutesLeft :: Integer)) | ||
146 | (commas secondsLeft) | 149 | (commas secondsLeft) |
147 | (pluralize secondsLeft) | 150 | (pluralize secondsLeft) |
148 | (pluralizeVerb secondsLeft))) | 151 | (pluralizeVerb secondsLeft))) |