summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_datetime.js
blob: b35853adff501a337ead0911cd3925ab930bf284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env kjscmd

var realDate = new Date();
var dtEdit = new QDateTimeEdit(this);
dtEdit.dateTime =  realDate;

var dt = dtEdit.dateTime;
if( dt.toString() == realDate.toString() )
	println( "Times match" );
else
{
	println( "Time got " + dt.toString() );
	println( "Time wanted " + realDate.toString() );
}