summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_qtimeedit.js
blob: 1dc91c7df775d75badfff2ab8f841f964358d89e (plain)
1
2
3
4
5
6
7
8
var h = new TQHBox(this);
var dt = new TQTimeEdit(h, 'tc');
var n = new Date(); // now

dt.time = n; // set the control to now
var t = dt.time; // get the time out

println( t.getHours().toString()+':'+t.getMinutes().toString()); // always puts out 23:59