mIRC Home    About    Download    Register    News    Help

Print Thread
#168278 06/01/07 06:03 AM
K
k1ll3rz
k1ll3rz
K
Is it possible to convert wut is put into an editbox into military time....say for instance i put 4:30 PM in $did(2) and clicked $did(3) to set it when the timer sets i need it to convert 4:30 PM to 16:30.....if its possible wut command do i need to use?

#168281 06/01/07 08:55 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Basically /help $asctime
More specifically
Code:
on *:dialog:dialog_name:sclick:3:{
.timer $asctime($date $did(2),Hh:nn) 1 1 <timer commands>
}

RusselB #169041 18/01/07 01:58 PM
K
k1ll3rz
k1ll3rz
K
i tried that command but all it returns is 186:00

#169047 18/01/07 03:12 PM
Joined: Oct 2005
Posts: 1,671
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,671
It should be HH not Hh. The 186 you see is 18h and 6p next to each other.

-genius_at_work


Link Copied to Clipboard