import win.ui;
/*DSG{{*/
winform = win.form(text="aardio工程-电子钟";right=643;bottom=262)
winform.add(
static={cls="static";left=16;top=12;right=635;bottom=249;align="center";center=1;font=LOGFONT(h=-37;name='黑体');transparent=1;z=1}
)
/*}}*/

//定时器电子钟

winform.setInterval(
function(){
showDate = "日期:"+tostring(time(time.now(),"%Y-%m-%d"));
showTime = "时间:"+tostring(time(time.now(),"%H:%M:%S"));
winform.static.text = showDate+" "+showTime
},1000
)

winform.show();
return win.loopMessage();