mIRC Home    About    Download    Register    News    Help

Topic Options
#179311 - 21/06/07 12:25 AM Count down timer, for say a birthday?
EffingHell Offline
Ameglian cow

Registered: 12/06/07
Posts: 37
Hi, is there any way to make a count down for the 17th of july .. to display how many days are left till my bday like an alias or something that when i type /bday its says something like 'there are 20 days left till my birthday'

Top
#179312 - 21/06/07 12:29 AM Re: Count down timer, for say a birthday? [Re: EffingHell]
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
Code:
alias bday {
  echo -a $duration($calc($ctime(17/07/2007 00:00) - $ctime))
}

Top
#179313 - 21/06/07 12:37 AM Re: Count down timer, for say a birthday? [Re: EffingHell]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
And if you want months/years rather than stopping at weeks, you can use $datediff or $DateXpander. $datediff is easier to use for a countdown into the future. $DateXpander offers accurate months/years even when considering leap years.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#179316 - 21/06/07 04:33 AM Re: Count down timer, for say a birthday? [Re: EffingHell]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
While you're asking for a specific date, my CountDown Timer works well, and has quite a few configuration options.

Top