Logic Machine Forum
Date, from 1986 - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Date, from 1986 (/showthread.php?tid=4449)



Date, from 1986 - sx3 - 15.12.2022

Hello,

Having problem with this date, it results in 2086 and not 1986.
Possible to get around the problem or is the date too old for KNX? Big Grin

Code:
  grp.write('5/5/63', {
            year = 1986,
            month = 05,
            day = 21
          })



RE: Date, from 1986 - admin - 15.12.2022

KNX Date datatype uses 2 digits [0..99] to encode the year.
value ≥ 90 : interpret as 20th century
value < 90: interpret as 21st century
Valid range is 1990 to 2089.

If you want to display a date but not modify it then you can use string data type.