using System; using System.Collections.Generic; using System.Text; namespace BusScheduler { public class Time { public int hour; public int min; public int sec; public double total; public string timeString; public Time() { hour = 0; min = 0; sec = 0; timeString = ""; } public void setTime(double tempTotal) { sec = Convert.ToInt16(tempTotal - Convert.ToInt16(tempTotal)) * 100; hour = Convert.ToInt16(tempTotal / 60); min = Convert.ToInt16(tempTotal % 60); total = tempTotal; timeString = hour + ":"+ min +":" + sec; } } }