[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.

Pins

Output

Description

Data type

Default value
Value range

DaTi

Date and time of day

DateAndTime

01.01.1990
00:00:00.000

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
2: February
3: March
4: April
5: May
6: June
7: July
8: August
9: September
10: October
11: November
12: December

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
2: Tuesday
3: Wednesday
4: Thursday
5: Friday
6: Saturday
7: Sunday

DayYear

Day of year

Integer

1

1…366