This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Date, from 1986
#1
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
          })
Reply
#2
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.
Reply


Forum Jump: