 | QueryModelExtensionsDifference(DateTime, DateTime) Method |
Calculate the difference between two dates
Namespace: SanteDB.Core.Model.QueryAssembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntaxpublic static TimeSpan Difference(
this DateTime source,
DateTime target
)
<ExtensionAttribute>
Public Shared Function Difference (
source As DateTime,
target As DateTime
) As TimeSpan
public:
[ExtensionAttribute]
static TimeSpan Difference(
DateTime source,
DateTime target
)
[<ExtensionAttribute>]
static member Difference :
source : DateTime *
target : DateTime -> TimeSpan Parameters
- source DateTime
[Missing <param name="source"/> documentation for "M:SanteDB.Core.Model.Query.QueryModelExtensions.Difference(System.DateTime,System.DateTime)"]
- target DateTime
[Missing <param name="target"/> documentation for "M:SanteDB.Core.Model.Query.QueryModelExtensions.Difference(System.DateTime,System.DateTime)"]
Return Value
TimeSpan[Missing <returns> documentation for "M:SanteDB.Core.Model.Query.QueryModelExtensions.Difference(System.DateTime,System.DateTime)"]
Usage Note
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).
See Also