static public int GetWholeSeconds(this Duration item, out Duration remainder) { int whole_seconds = item.GetWholeSeconds(); remainder = item - Duration.Seconds(whole_seconds); return(whole_seconds); }
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 GetMinutesSeconds(this Duration item, out int minutes, out int seconds) { minutes = item.GetWholeMinutes(out item); seconds = item.GetWholeSeconds(out item); }
static public void GetSecondsMilliseconds(this Duration item, out int seconds, out int milliseconds) { seconds = item.GetWholeSeconds(out item); milliseconds = (int)item.GetWholeMilliseconds(); }