DateExtensionsElapsedFromNow Method
Returns the elapsed time between the date represented by the specified DateTime and
the current date and time.
Namespace: DevCase.Extensions.DateExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static TimeSpan ElapsedFromNow(
this DateTime sender
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function ElapsedFromNow (
sender As DateTime
) As TimeSpan
Dim sender As DateTime
Dim returnValue As TimeSpan
returnValue = sender.ElapsedFromNow()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static TimeSpan ElapsedFromNow(
DateTime sender
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member ElapsedFromNow :
sender : DateTime -> TimeSpan
No code example is currently available or this language may not be supported.
- sender DateTime
-
The source DateTime.
TimeSpan
A
TimeSpan representing the elapsed time between
the date represented by the specified
DateTime and
the current date and time.
In Visual Basic and C#, you can call this method as an instance method on any object of type
DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a code example.
No code example is currently available or this language may not be supported.
Dim elapsed As TimeSpan = Date.Now.AddDays(1).ElapsedFromNow()
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.