Share via


DateTime.Ticks Property

Gets the current number of ticks in the current DateTime object.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public long Ticks { get; }

Property Value

The current number of ticks, expressed as a number ranging from the value in the MinValue field through the value in the MaxValue field.

Remarks

One tick equals 100 nanoseconds. The value of this property represents the number of ticks that have elapsed since 12:00:00 midnight, January 1, 0001.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

DateTime Structure
DateTime Members
System Namespace