I have a clock that worked in mirc before version 6. I need to know what to change the time to...it used to be $rtime. Could someone please help me? Thanks in advance
you can get the time with $time...
the $time doesn't seem to work for me...but thanks anyway
if u pasted the remote code here that does that maybe someone could help u out .....
This is the code for the clock I am enquiring about
/$rtime {
set %realtime $rtime
set %hour $token(1,58,%realtime)
set %type AM
if (%hour > 12) { /set %hour %hour - 12 | /set %type PM }
if (%hour = 12) /set %type PM
if (%hour = 0) /set %hour 12
set %min $token(2,58,%realtime)
set %realtime %hour $+ : $+ %min %type
if (%online = on) /set %online %realtime
unset %hour | /unset %min | /unset %type | /return %realtime
sorry to bother5 everyone...but I got it fixed...thanks
I don't know what your code should return, since it doesn't work on mIRC 6.x, but this is the new code, and it returns 08:30 PM.
alias rtime {
VAR %realtime = $time(hh) $+ : $+ $time(nn) $time(TT)
IF (%online == on) { SET %online %realtime }
RETURN %realtime
}
dammit, too late
oh well
what's the point of this all?
$time(h:nn:ss TT)
I copied his code and changed that, without thinking that I could just use that. Sry :tongue: