mIRC Home    About    Download    Register    News    Help

Print Thread
#196765 23/03/08 12:25 AM
Joined: Jan 2008
Posts: 22
I
ix007 Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: Jan 2008
Posts: 22
I want to check if something is in an $asctime(hh:nntt) format but all the methods I have tried had failed. Any suggestions?
$asctime(hh:nntt) == 10:23pm
I was thinking $iif(time == $asctime(hh:nntt),f,t) but that wouldn't work!
Thanks ahead!

ix007 #196766 23/03/08 12:35 AM
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
Assuming the string you want to check is $1:
Code:
if ($time($ctime($date $1),hh:nntt) == $1) { echo -a $1 matches format "hh:nntt" }

qwerty #196772 23/03/08 01:12 AM
Joined: Jan 2008
Posts: 22
I
ix007 Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: Jan 2008
Posts: 22
thank you.


Link Copied to Clipboard