mIRC Home    About    Download    Register    News    Help

Print Thread
#204670 27/09/08 11:57 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I trying to calculate the days between two dates. And i trying to use the format: 09.27.2008 , how would i do to see if it have paste lets say 4 days, and also when it have changed month. and it's 10.01.2008. i cant figure out how to match the months and days, //echo -a -> $gettok(09.27.2008,2,46) return the day.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #204671 27/09/08 12:40 PM
Joined: Jun 2008
Posts: 48
T
Ameglian cow
Offline
Ameglian cow
T
Joined: Jun 2008
Posts: 48
I had to refresh my own memory with the help file and a little trial and error but here ya go.
Code:
$duration($calc($ctime(01/10/08) - $ctime(27/09/08)))
will = 4days.

If you need more help making this info work, just ask here.


I've gone to look for myself. If I should return before I get back, please keep me here.
Typos #204674 27/09/08 02:03 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Thnx, just was i was looking for.. =)


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard