rendered paste bodyxmas2 {
if ($gettok($date,2,47) <= 11) { set %hcdate Dec 25 00:00:00 $time(yyyy) | msg $chan 4There is $duration3($calc($ctime(%hcdate) - $ctime)) Until Christmas!! | unset %hcdate | halt }
if ($gettok($date,2,47) == 12) && ($gettok($date,1,47) >= 25) { msg $chan There is $calc(31 - $gettok($date,1,47)) Days $calc(23 - $gettok($asctime(HH:nn:ss),1,58)) Hours $calc(59 - $gettok($asctime(HH:nn:ss),2,58)) Minutes $calc(60 - $gettok($asctime(HH:nn:ss),3,58)) Seconds Till New Years | halt }
else { notice $nick 4There are3 $calc(24 - $gettok($date,1,47)) 4Days3 $calc(23 - $gettok($asctime(HH:nn:ss),1,58)) 4Hours3 $calc(59 - $gettok($asctime(HH:nn:ss),2,58)) 4Mins3 $calc(60 - $gettok($asctime(HH:nn:ss),3,58)) 4Seconds Until 3C4h3r4i3s4t3m4a3s 4GMT! | halt }
}