Version

Ticks Property

Gets the count of clock ticks representing the current DateTime value.
Syntax
'Declaration
 
Public ReadOnly Property Ticks As Long
public long Ticks {get;}
Exceptions
ExceptionDescription
System.NullReferenceExceptionThrown when the SmartDate is empty (determined by when IsEmpty returns True) and the count of clock ticks matches the sentinel value used to determine emptiness.
Remarks

A clock tick is a time-interval of 100-nanoseconds.

When EmptyIsMin is true, the count of clock ticks must be greater than MinValue and less than or equal to MaxValue. When EmptyIsMin is false, the count of clock ticks must be greater than or equal to MinValue and less than MaxValue. The value returned by Ticks must necessarily exclude the DateTime sentinel value used to denote an empty SmartDate instance.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also