Class TimeSpanExtensions
Static class that contains helper methods for System.TimeSpans.
Inheritance
System.Object
TimeSpanExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fibula.Scheduling.Contracts.Extensions
Assembly: Fibula.Scheduling.Contracts.dll
Syntax
public static class TimeSpanExtensions
Methods
| Improve this Doc View SourceRound(TimeSpan, TimeSpan)
Rounds the given time span by another.
Declaration
public static TimeSpan Round(this TimeSpan timeSpan, TimeSpan roundBy)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | timeSpan | The time span to round. |
System.TimeSpan | roundBy | The time span to round by. |
Returns
Type | Description |
---|---|
System.TimeSpan | The rounded time. |