Exemple #1
0
        static public string ToDaysHoursMinutesSecondsString(this Duration item)
        {
            int days;
            int hours;
            int minutes;
            int seconds;

            item.GetDaysHoursMinutesSeconds(out days, out hours, out minutes, out seconds);

            return(days + ":" +
                   hours.ToString("D2") + ":" +
                   minutes.ToString("D2") + ":" +
                   seconds.ToString("D2"));
        }