This is how i do it
Make a trigger to update a variable "time" every minute
In the action tab run this script :
import locale
locale.D_FMT
#taal nederlans maken#
locale.setlocale(locale.LC_ALL,'nl_NL.UTF-8')
theTime = indigo.server.getTime().strftime("%H:%M")
theTimeStr = str(theTime)
indigo.variable.updateValue(128602617, theTimeStr)
Day = indigo.server.getTime().strftime("%A")
theDayStr = str(Day)
indigo.variable.updateValue(944145736, theDayStr)
Hour = indigo.server.getTime().strftime("%H")
theHourStr = str(Hour)
indigo.variable.updateValue(1052951635, theHourStr)
To change the way the time is shown :
http://strftime.org