Class TimeSpanExtensions
Extension methods for
Inheritance
System.Object
TimeSpanExtensions
Namespace: X10D.Time
Assembly: X10D.dll
Syntax
public static class TimeSpanExtensions : object
Methods
| Improve this Doc View SourceAgo(TimeSpan)
Returns a
Declaration
public static DateTime Ago(this TimeSpan value)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | value | The |
Returns
Type | Description |
---|---|
DateTime | A |
FromNow(TimeSpan)
Returns a
Declaration
public static DateTime FromNow(this TimeSpan value)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | value | The |
Returns
Type | Description |
---|---|
DateTime | A |