DATE_AND_TIME

Combined date and time of day value.

Size

64 bits (millisecond resolution)

Default

DT#0001-01-01-00:00:00

IEC 61131-3

Section 2.3.1

Support

Supported

Example

event := DT#2024-06-15-10:30:00;
deadline := DT#2024-06-15-12:00:00;
on_time := event < deadline;  (* on_time = TRUE *)

Literals

DT#2024-01-15-14:30:00
DATE_AND_TIME#2024-12-31-23:59:59

See Also