Requested for: http://forums.mirc.com/ubbthreads.php/topics/248319/Reading_Countdown_from_website#Post248319
Contact: http://westor.ucoz.com/contact
Commands:
!fdate <time/date> = Will give you the until duration of the date/time you request.
(example: !fdate 12/12/2014 00:00:00)
ON !*:TEXT:*:#: {
tokenize 32 $strip($1-,burci)
if ($1 == !fdate) {
if (!$2-) { .msg $chan [ $+ $nick $+ ]: Error, try again and enter the date or time! - (E.g: $1 $date $+ ) | return }
var %conv = $replacex($duration($calc($ctime($2-) - $ctime)),wk,week,wks,weeks,hr,hour,hrs,hours,mins,minutes,secs,seconds,sec,second)
if (!%conv) || (- isin %conv) { .msg $chan [ $+ $nick $+ ]: Error, try again and enter the date or time correctly! - (E.g: $1 $date $+ ) | return }
.msg $chan [ $+ $nick $+ ]: There are $qt( $+ %conv $+ ) before the $qt( $+ $2- $+ ) date/time.
}
}