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