TimeTrackerController.convertSecToHoMinSec C# (CSharp) Method

convertSecToHoMinSec() private method

Converts the seconds to hours minutes seconds.
private convertSecToHoMinSec ( int sec ) : string
sec int Sec.
return string
	string convertSecToHoMinSec(int sec) {

		int ho = sec / 3600;
		int rem1 = sec % 3600;

		int min = rem1 / 60;
		int rem = rem1 % 60;

		string s = ho.ToString("00") + " Hours, " + min.ToString("00") + " Minutes, and " + rem.ToString("00") + " Seconds";

		return s;

	}