GenericExtensionsLargestMultipleOf Method |
Namespace: DHI.Mike1D.Generic
public static TimeSpan LargestMultipleOf( this TimeSpan span, TimeSpan spanRef )
TimeSpan t7s = TimeSpan.FromSeconds(7); TimeSpan t25s = TimeSpan.FromSeconds(25); // returns TimeSpan.FromSeconds(21) TimeSpan t21s = t25s.LargestMultipleOf(t7s);