[GET_DATI] Get local date and time of day
Function block GET_DATI provides the date and time of the automation station.
GET_DATI provides the date and time of the automation station. The system time is available on the outputs in various formats: Date and time, date, time of day. and is split into values for year, month, day, hour, minute, second, millisecond, day of week, and day of year.
Output | Description | Data type | Default value |
|---|---|---|---|
DaTi | Date and time of day | DateAndTime | 01.01.1990 |
Da | Date | Date | 01.01.1990 |
TiDay | Time of day | TimeOfDay | 00:00:00.000 |
Year | Year | Integer | 1990 1990…2169 |
Month | Month | Integer | 1: January 1…12 |
1: January | |||
Day | Day | Integer | 1 1…31 |
Hour | Hour | Integer | 0 0…23 |
Minute | Minute | Integer | 0 0…59 |
Second | Second | Integer | 0 0…59 |
Mscnd | Millisecond | Integer | 0 0…999 |
DayWeek | Day of week | Integer | 1: Monday 1…7 |
1: Monday | |||
DayYear | Day of year | Integer | 1 1…366 |