mIRC Home    About    Download    Register    News    Help

Print Thread
detect AM/PM #249310 24/11/14 03:10 PM
Joined: Aug 2012
Posts: 59
Maelish Offline OP
Babel fish
OP Offline
Babel fish
Joined: Aug 2012
Posts: 59
Is there a method to detect AM & PM?

Would it be something like:

Code:
if (($asctime(N,TT)) == AM ) {//msg $chan Good Morning}

Last edited by Maelish; 24/11/14 03:17 PM.

Find Gamers, my player finder for tabletop RPGers and Wargamers.
Re: detect AM/PM [Re: Maelish] #249312 24/11/14 03:37 PM
Joined: Aug 2012
Posts: 59
Maelish Offline OP
Babel fish
OP Offline
Babel fish
Joined: Aug 2012
Posts: 59
Ok, so if anybody is interested. This is the method that seems to be working.

Code:
on *:JOIN:#channel-name:{ if ($asctime(TT) == AM ) //msg $chan Good Morning }

Last edited by Maelish; 24/11/14 03:37 PM.

Find Gamers, my player finder for tabletop RPGers and Wargamers.