Cicode Programming Reference > Using Variables > Declaring the Variable Data Type > TIMESTAMP Data Type

TIMESTAMP Data Type

The TIMESTAMP data type is a new data type in Cicode which represents the date and time as a 64-bit value by specifying the number of 100-nanosecond intervals since January 1, 1601 .

The operators allowed for the TIMESTAMP data type are:

Example:

 
TIMESTAMP t1;
TIMESTAMP t2;
 
t1 = Tag1.T;
t1 = t2;
 
IF	t1 < Tag2.T THEN
// insert code here
END

A set of Cicode functions are provided which allow initialization, conversion and other operations on the TIMESTAMP data type. Implicit conversion between the TIMESTAMP data type and other Cicode data types is not allowed.