Can someone tell me what everyone is using to Display the Date and Time on the Control page.
Python script or something else.
If using a python script can someone provide an example
Thanks in advance
from datetime import date
indigo.variable.updateValue(972215514, date.today().strftime("%A")) # substitute the ID of the variable that will hold the weekday
indigo.variable.updateValue(1274472235, date.today().strftime("%b")) # substitute the ID of the variable that will hold the MonthShort
indigo.variable.updateValue(102740303, date.today().strftime("%B")) # substitute the ID of the variable that will hold the Month
indigo.variable.updateValue(825743399, date.today().strftime("%d")) # substitute the ID of the variable that will hold the Day
indigo.variable.updateValue(130393313, date.today().strftime("%Y")) # substitute the ID of the variable that will hold the year
indigo.variable.updateValue(1578531574, date.today().strftime("%y")) # substitute the ID of the variable that will hold the Year2Digit
Users browsing this forum: No registered users and 12 guests