Skip to content
Snippets Groups Projects
Commit 359267bc authored by Francesco's avatar Francesco Committed by GitHub
Browse files

Merge pull request #71 from ionyx0/master

Add logic to correctly display time if minute is less than 10.
parents 390147ee f684e6b0
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,9 @@ public class time implements CommandAbstraction {
int hours = c.get(Calendar.HOUR_OF_DAY);
int minutes = c.get(Calendar.MINUTE);
if(minutes < 10)
return hours + ":0" + minutes;
else
return hours + ":" + minutes;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment