Until.. date/time

By ^WeSt on Oct 03, 2014

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.
  }
}   

Comments

Sign in to comment.
dma   -  Jan 20, 2016

would be nice if i can copy the whole script you got a few long lines... but i got it thanks

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.