static public int GetWholeDays(this Duration item, out Duration remainder) { int whole_days = item.GetWholeDays(); remainder = item - Duration.Days(whole_days); return(whole_days); }
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); }
static public void GetDaysHours(this Duration item, out int days, out int hours) { days = item.GetWholeDays(out item); hours = item.GetWholeHours(out item); }