Originally Posted By: vexed2
Ok i have an alias which turns a duration format into..

04:11:59
hh:mm:ss

;; $formtime($uptime(server,3)) etc
Code:
alias formtime {
  var %a = $round($1,0)
  var %s = $calc(%a % 60)
  var %h = $int($calc(%a / 3600))
  var %m = $int($calc(((%a - (%h * 3600))) / 60))
  return $base(%h,10,10,2) $+ : $+ $base(%m,10,10,2) $+ : $+ $base(%s,10,10,2)
}


I was wondering how to get that to return a format of

01:04:11:59
dd:hh:mm:ss

thanks for any help.


hmph, 1 line... Im not sure why your using $int/$base functions when $duration is all you need you even put it as your subject for topic.

alias formtime return $duration($1,1)


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }