Originally Posted By: Nillen
Code:
  alias todate {
    var %month = $$1
    var %day = $$2
    var %year = $asctime(yyyy)

    var %todate = $calc($ctime($+(%day,-,%month,-,%year) 00:00:00) - $ctime)
    if (%todate < 0) {
      inc %year
      %todate = $calc($ctime($+(%day,-,%month,-,%year) 00:00:00) - $ctime)
    }
    return %todate
  }

on 1:TEXT:!countdown & &:#artiiz:{
   msg # There is $duration($todate($2,$3)) until $2 $3 $+ .
}
Try typing either //echo -a $duration($todate(08,12)) or as another user !countdown 08 12


I made it work now smile
Just one more question, is it possible to make an exact time for the code to count down for? So that the hours, minutes and seconds becomes exactly.