static public string ToHoursMinutesSecondsString(this Duration item) { int hours; int minutes; int seconds; item.GetHoursMinutesSeconds(out hours, out minutes, out seconds); return(hours + ":" + minutes.ToString("D2") + ":" + seconds.ToString("D2")); }