mIRC Home    About    Download    Register    News    Help

Print Thread
#95137 22/08/04 01:58 PM
Joined: Jun 2003
Posts: 77
O
ozyvent Offline OP
Babel fish
OP Offline
Babel fish
O
Joined: Jun 2003
Posts: 77
Can anyone give me a script that will countdown to a specified date (time isn't important) but display the output in only days. (I don't want weeks/hours/minutes/seconds/etc.)


.
#95138 22/08/04 02:12 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
An example would be;

$round($calc(($ctime(25 Dec 2004) - $ctime(21 Aug 2004)) / 86400),0)


Where, 25 Dec 2004, is the most recent date, and 21 Aug 2004 is the least recent, if you want to calculate the days to an event in the future, replace 21 Aug 2004 with $ctime

Eamonn.


Link Copied to Clipboard