We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5834f6 commit ea483a9Copy full SHA for ea483a9
src/utils/Time.re
@@ -2,13 +2,9 @@ open Unix
2
3
let timeToString = (time) => {
4
let rawMinutes = string_of_int(time.tm_min);
5
- let minutes = if (String.length(rawMinutes) == 1) {
6
- "0"
7
- } else {
8
- ""
9
- } ++ rawMinutes;
10
11
- minutes
+ rawMinutes
+ |> String.cat(if (String.length(rawMinutes) == 1) { "0" } else { "" })
12
|> String.cat(":")
13
|> String.cat(string_of_int(time.tm_hour))
14
|> String.cat(" ");
0 commit comments