→Time literal

according to →IEC-standard: →literal representing data of type TIME, DATE, TIME_OF_DAY or DATE_AND_TIME

Examples for duration literals

You must enter duration data, such as days (d), hours (h), minutes (m), seconds (s) and fractions of a second (ms for milliseconds, us for microseconds, ns for nanoseconds) or any combinations of them, as shown in the following table. You can separate the duration units by underscore character. Moreover, you can enter the units in upper- or lowercase letters, for example s or S for seconds.

Description

Examples

Duration literals without underscore

Short prefix

T#14ms, T#14.7s, T#14.7m, T#14.7h, T#14.7d, T#14h12m, t#5d14h12m18s3.5ms

Long prefix

TIME#14ms, time#14h12m

Duration literals with underscore

Short prefix

T#14h_12m, t#5d_14h_12m_18s_3.5ms

Long prefix

TIME#14h_12m, time#5d_14h_12m_18s_3.5ms

Observe that your used →target system might influence the usage of duration literals in logi.CAD 3 (see "Properties and restrictions specific to the target system").

Examples for date and time of day literals

In case of date and time literal and time of day literal, the fractions of a second (entered after the .) are optional.

Description

Examples

Date literal

Short prefix

D#1984-06-25

Long prefix

DATE#1984-06-25

Date and time literal

Short prefix

DT#1984-06-25-15:36:55.360_227_400

Long prefix

DATE_AND_TIME#1984-06-25-15:36:55.360227400

Time of day literal

Short prefix

TOD#15:36:55.36

Long prefix

TIME_OF_DAY#15:36:55.36

Observe that your used →target system might influence the usage of these literals in logi.CAD 3 (see "Properties and restrictions specific to the target system").