to get the current time you should use $time for instance like this

$time(mmm-dd-hh:nntt)

will return

Feb-22-07:06am

i dont exactly see what you are doing in the second half ? what do you want it to return ?