You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/kjsembed/tests/test_datetime.js

15 lines
314 B

#!/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() );
}