The block converts UNIX-time to more convenient parameters like year, month, day, and others, taking into account the time zone.
To convert the current device time, create a block FLEX to get field #3 "time" and connect it to the input
UNIX time
.
Function Menu | Block Diagram |
---|---|
![]() |
![]() |
Name | Type | Description |
---|---|---|
UNIX time |
int32 |
Time in UNIX-time format |
time zone |
int32 |
Time zone. An integer from -12 to 12 |
Name | Type | Description |
---|---|---|
year |
int32 |
Year |
month |
int32 |
Month number. An integer from 1 to 12. For example: 1 – January, etc. |
day |
int32 |
Day of the month. An integer from 1 to 31. |
day of week |
int32 |
Day of the week, starting from Sunday: 0 - Sunday 1 - Monday ... 6 - Saturday |
hour |
int32 |
Hour. An integer from 0 to 24. |
min |
int32 |
Minute. An integer from 0 to 59. |
sec |
int32 |
Second. An integer from 0 to 59. |
Not available