To insert time in hh:mm:ss format you can use this macros:
(function()
{
var date = new Date();
var hours = date.getHours();
var minutes = date.getMinutes();
var seconds = date.getSeconds();
Api.GetActiveSheet().GetActiveCell().SetValue(hours + ":" + minutes + ":" + seconds);
})();