Skip to content
Snippets Groups Projects
Commit f684e6b0 authored by Alex Higgins's avatar Alex Higgins
Browse files

Add logic to correctly display time if minute is less than 10.

parent 4b132a6f
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,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