 | QueryModelExtensionsAge Method |
Return the age
Namespace: SanteDB.Core.Model.QueryAssembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntaxpublic static TimeSpan Age(
this DateTime me,
DateTime atDateTime
)
<ExtensionAttribute>
Public Shared Function Age (
me As DateTime,
atDateTime As DateTime
) As TimeSpan
public:
[ExtensionAttribute]
static TimeSpan Age(
DateTime me,
DateTime atDateTime
)
[<ExtensionAttribute>]
static member Age :
me : DateTime *
atDateTime : DateTime -> TimeSpan Parameters
- me DateTime
[Missing <param name="me"/> documentation for "M:SanteDB.Core.Model.Query.QueryModelExtensions.Age(System.DateTime,System.DateTime)"]
- atDateTime DateTime
[Missing <param name="atDateTime"/> documentation for "M:SanteDB.Core.Model.Query.QueryModelExtensions.Age(System.DateTime,System.DateTime)"]
Return Value
TimeSpan[Missing <returns> documentation for "M:SanteDB.Core.Model.Query.QueryModelExtensions.Age(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).
RemarksThis exists for the extended query filter only
See Also