Beispiel #1
0
 /// <summary>The absolute value of the movement in time between first and second.</summary>
 public static IDuration Between(ITimePoint first, ITimePoint second)
 {
     if (first.IsAfterOrSameInstantAs(second))
     {
         return(FromTimeSpan(first.AsDateTime() - second.AsDateTime()));
     }
     return(FromTimeSpan(second.AsDateTime() - first.AsDateTime()));
 }