i didn't look at the link you got your code from but this should work

Code
alias endofyear {
  var %newyear $ctime($calc($asctime(yyyy) + 1) $+ /01/01 00:00:00)
  echo -ag $duration($calc(%newyear - $ctime))
}

hope this helps


incorrigo syx
- text based virtual world -