示例#1
0
        static public int GetWholeHours(this Duration item, out Duration remainder)
        {
            int whole_hours = item.GetWholeHours();

            remainder = item - Duration.Hours(whole_hours);
            return(whole_hours);
        }
示例#2
0
 static public void GetDaysHoursMinutesSeconds(this Duration item, out int days, out int hours, out int minutes, out int seconds)
 {
     days    = item.GetWholeDays(out item);
     hours   = item.GetWholeHours(out item);
     minutes = item.GetWholeMinutes(out item);
     seconds = item.GetWholeSeconds(out item);
 }
示例#3
0
 static public void GetHoursMinutesSecondsMilliseconds(this Duration item, out int hours, out int minutes, out int seconds, out int milliseconds)
 {
     hours        = item.GetWholeHours(out item);
     minutes      = item.GetWholeMinutes(out item);
     seconds      = item.GetWholeSeconds(out item);
     milliseconds = (int)item.GetWholeMilliseconds();
 }
示例#4
0
 static public void GetDaysHours(this Duration item, out int days, out int hours)
 {
     days  = item.GetWholeDays(out item);
     hours = item.GetWholeHours(out item);
 }
示例#5
0
 static public void GetHoursMinutes(this Duration item, out int hours, out int minutes)
 {
     hours   = item.GetWholeHours(out item);
     minutes = item.GetWholeMinutes(out item);
 }