Home Notices Documents Classes Download Others Rice
Classes  >  datetime  >  Ticks
datetime class : Ticks getter

Description

Gets the number of ticks of the time represented by this instance.

Syntax

datetimeInstance.Ticks

Arguments

None

Return value

ClassDescription
longThe number of ticks.

Sample code

1:

datetime dt = new datetime();

2:

long ticks = dt.Ticks;

Notes

It's a wrapper of the System.DateTime.Ticks property.

This is the timer increment from 0:00:00 UTC on January 1, 0001, in the Gregorian calendar.

One tick is 100 nanoseconds.


This getter was added in the Ver 1.0.0.1.

Links for reference

Copyright © Rice All rights reserved.