Time/date and duration data types

From Axel Public Wiki
Revision as of 17:28, 16 April 2020 by Axelpwiki (talk | contribs) (Created page with "LogicLab fully supports the following IEC data types: == DATE == DATE is implemented as a 32-bit signed integer type (DINT), and its finest grane size to the seconds. The def...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

LogicLab fully supports the following IEC data types:

DATE

DATE is implemented as a 32-bit signed integer type (DINT), and its finest grane size to the seconds. The default value is 1970-01-01. As a DINT, its maximum representable value is 2147483647, which corresponds to the maximum date of Tuesday 19 January 2038 (in Greenwich Mean Time).

An example of a DATE may be the following:

DATE#1980-01-05;

LDATE

LDATE is implemented as a 64-bit signed integer type (LINT), and its finest grane size to the nanoseconds. The default value is 1970-01-01. As a LINT, its maximum representable value is 9223372036854775807, which corresponds to the maximum date of Friday 11 April 2262 (in Greenwich Mean Time).

An example of a LDATE may be the following:

LDATE#1980-01-05;

DATE_AND_TIME

DATE_AND_TIME is implemented as a 32-bit signed integer type (DINT), and its finest grane size to the seconds. The default value is 1970-01-01-00:00:00. As a DINT, its maximum representable value is 2147483647, which corresponds to the maximum date of Tuesday 19 January 2038 03:14:07 (in Greenwich Mean Time).

An example of a DATE_AND_TIME may be the following:

DATE_AND_TIME#1980-01-05-00:05:10;
DT#1980-01-05-00:05:10;

LDATE_AND_TIME

LDATE_AND_TIME is implemented as a 64-bit signed integer type (LINT), and its finest grane size to the nanoseconds. The default value is 1970-01-01-00:00:00. As a LINT, its maximum representable value is 9223372036854775807, which corresponds to the maximum date of Friday 11 April 2262 23:47:16.854 (in Greenwich Mean Time).

An example of a LDATE_AND_TIME may be the following:

LDATE_AND_TIME#1980-01-05-00:05:10.123456789;
LDT#2080-01-05-20:05:10.123_456_789;