summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_datetime.js
blob: 417e9844fb1d7803341e48e49ac469aa68e4fc73 (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 TQDateTimeEdit(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() );
}