Esempio n. 1
0
        static public string ToDaysHoursMinutesSecondsMillisecondsString(this Duration item)
        {
            int days;
            int hours;
            int minutes;
            int seconds;
            int milliseconds;

            item.GetDaysHoursMinutesSecondsMilliseconds(out days, out hours, out minutes, out seconds, out milliseconds);

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