xxxxxxxxxx
The type is Date // but the type can also be inferred from "new Date()" already
xxxxxxxxxx
const d: Date = new Date(); // but the type can also be inferred from "new Date()" already
xxxxxxxxxx
function dateTest(date:Date):void{
var hours=date.getHours();
var minutes=date.getMinutes();
var seconds=date.getSeconds();
console.log("Current Time: "+hours+":"+minutes+":"+seconds);
}
var date=new Date();
dateTest(date);