diff options
author | Andrew Cady <d@cryptonomic.net> | 2022-09-16 01:14:42 -0400 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2022-09-16 01:14:42 -0400 |
commit | 80ddcbf5c59b9fd7537f5dbd48c506e422a9ac97 (patch) | |
tree | 8a7b077ec3676b23df9e72bb84d719f80747b75e | |
parent | da257758d5a49fb3d05aa057a5c81e59128ba10b (diff) |
cleanup
-rwxr-xr-x | countdown.hs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/countdown.hs b/countdown.hs index ac5193b..232c04b 100755 --- a/countdown.hs +++ b/countdown.hs | |||
@@ -165,7 +165,6 @@ conversionTableRowFromCosmicSeconds :: NominalDiffTime -> [Widget n] | |||
165 | conversionTableRowFromCosmicSeconds n = [cosmicTime, realTime] | 165 | conversionTableRowFromCosmicSeconds n = [cosmicTime, realTime] |
166 | where | 166 | where |
167 | realTime = str $ showLarge (fromRational $ toCosmicTime n) ++ " years" | 167 | realTime = str $ showLarge (fromRational $ toCosmicTime n) ++ " years" |
168 | -- cosmicTime = showCosmicYears $ ceiling $ toCosmicTime n | ||
169 | cosmicTime = str $ showTime n | 168 | cosmicTime = str $ showTime n |
170 | 169 | ||
171 | cosmicConversion' :: Widget n | 170 | cosmicConversion' :: Widget n |
@@ -185,14 +184,10 @@ cosmicConversion = renderTable $ | |||
185 | table | 184 | table |
186 | [ | 185 | [ |
187 | [str "1 billion years" , showCosmicYears $ 1000 * 1000 * 1000], | 186 | [str "1 billion years" , showCosmicYears $ 1000 * 1000 * 1000], |
188 | -- conversionTableRowFromCosmicSeconds $ 7 * 24 * 60 * 60, | ||
189 | [str "100 million years" , showCosmicYears $ 100 * 1000 * 1000], | 187 | [str "100 million years" , showCosmicYears $ 100 * 1000 * 1000], |
190 | -- conversionTableRowFromCosmicSeconds $ 24 * 60 * 60, | ||
191 | [str "10 million years" , showCosmicYears $ 10 * 1000 * 1000], | 188 | [str "10 million years" , showCosmicYears $ 10 * 1000 * 1000], |
192 | -- conversionTableRowFromCosmicSeconds $ 60 * 60, | ||
193 | [str "1 million years" , showCosmicYears $ 1000 * 1000], | 189 | [str "1 million years" , showCosmicYears $ 1000 * 1000], |
194 | [str "100 thousand years" , showCosmicYears $ 100 * 1000], | 190 | [str "100 thousand years" , showCosmicYears $ 100 * 1000], |
195 | -- conversionTableRowFromCosmicSeconds $ 60, | ||
196 | [str "10 thousand years" , showCosmicYears $ 10 * 1000], | 191 | [str "10 thousand years" , showCosmicYears $ 10 * 1000], |
197 | [str "1 thousand years" , showCosmicYears 1000], | 192 | [str "1 thousand years" , showCosmicYears 1000], |
198 | [str "100 years" , showCosmicYears 100], | 193 | [str "100 years" , showCosmicYears 100], |