DfsExtensionsTotalYear Method |
Gets the value of the DateTime as whole and fractional
years.
The fractional value returned for a specific day in the year way will
differ for years being leap-years and years not being leap-years.
Namespace: DHI.Generic.MikeZero.DFSAssembly: DHI.Generic.MikeZero.DFS (in DHI.Generic.MikeZero.DFS.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax public static double TotalYear(
this DateTime dateTime
)
<ExtensionAttribute>
Public Shared Function TotalYear (
dateTime As DateTime
) As Double
public:
[ExtensionAttribute]
static double TotalYear(
DateTime dateTime
)
[<ExtensionAttribute>]
static member TotalYear :
dateTime : DateTime -> float
Parameters
- dateTime
- Type: SystemDateTime
DateTime
Return Value
Type:
DoubleWhole and fractional years
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