#!/usr/bin/env kjscmd

var dateTime = new TQDateTimeEdit(this);
dateTime.connect( dateTime, 'valueChanged(const TQDateTime&)', this, 'changed');

var jsDate = new Date();
dateTime.setDateTime( jsDate );

dateTime.show();
application.exec();

function changed( time )
{
	println( time.toString() );
	println( jsDate.toString() );
}

