Date constants, Time_of_day constants, Date_and_time constants – Lenze PLC Designer PLC Designer (R2-x) User Manual
Page 507: L-force | plc designer

L-force | PLC Designer
Operands in PLC Designer
DMS 3.2 EN 02/2011 TD29
505
10.1.3
DATE Constants
These constants can be used to enter dates. A DATE constant is declared beginning
with a "d", "D", "DATE" or "date" followed by "#". You can then enter any date with
format Year-Month-Day.
Examples:
DATE#1996-05-06
d#1972-03-29
(see also chapter Datentypen, Time Data Types)
10.1.4
TIME_OF_DAY Constants
Use this type of constant to store times of the day. A TIME_OF_DAY declaration begins
with "tod#", "TOD#", "TIME_OF_DAY#" or "time_of_day#" followed by a time with the
format: Hour:Minute:Second. You can enter seconds as real numbers or you can enter
fractions of a second.
Examples:
TIME_OF_DAY#15:36:30.123
tod#00:00:00
(see also chapter Datentypen, Time Data Types)
10.1.5
DATE_AND_TIME Constants
Date constants and the time of day can also be combined to form so-called
DATE_AND_TIME constants. DATE_AND_TIME constants begin with "dt#", "DT#",
"DATE_AND_TIME#" or "date_and_time#". Place a hyphen after the date followed by
the time.
Examples:
DATE_AND_TIME#1996-05-06-15:36:30
dt#1972-03-29-00:00:00
(see also chapter Datentypen, Time Data Types)