Table 64 and Table 65 list some special values and their conversion to the other time data type. They can be used as a base set to test the conversion algorithm implementation (together with other input-output pairs).
Table 64 – OPC UA DateTime to IO-Link TimeT – Special values
Input (OPC UA DateTime) |
Output (IO-Link TimeT) |
|
Seconds value |
Description |
Seconds value |
Date/time value before 1984/01/01 0:00:00,000AM (inclusive) |
Date/time value is "truncated" |
1984/01/01 00:00:00,000AM |
Date/time value after 2120/02/07 06:28:15,999AM (inclusive) |
Date/time value is "truncated" |
2120/02/07 06:28:15,999AM |
0 |
Minimal OPC UA DateTime value = 1601/01/01 12:00:00,000AM |
1984/01/01 00:00:00,000AM |
INT64_MAX (0x7FFFFFFFFFFFFFFF) |
Maximal OPC UA DateTime value = 9999/12/31 11:59:59,000PM |
2120/02/07 06:28:15,999AM |
Table 65 – IO-Link TimeT to OPC UA DateTime – Special values
Input (IO-Link TimeT) |
Output (OPC UA DateTime) |
|
Seconds value |
Description |
Seconds value |
1984/01/01 00:00:00,000AM |
Minimal IO-Link TimeT value |
0 |
2120/02/07 06:28:15,000AM |
Maximal IO-Link TimeT value |
INT64_MAX |
0 |
First number after IO-Link TimeT rollover |
2036/02/07 06:28:17,000AM |
seconds = UINT32_MAX, fSeconds = UINT32_MAX |
Last number before IO-Link TimeT rollover |
2036/02/07 06:28:16,999AM |