you can use TimeSpan
here is one example of it
public string getFormattedTimeFromSecond(double second)
{
TimeSpan t = TimeSpan.FromSeconds(second);
string formatedTime = string.Format("{0:D2}H:{1:D2}M:{2:D2}S",
t.Hours,
t.Minutes,
t.Seconds);
return formatedTime;
}