mIRC Home    About    Download    Register    News    Help

Print Thread
#168278 06/01/07 06:03 AM
Joined: Jun 2003
Posts: 92
K
k1ll3rz Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
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?


k1ll3rz
k1ll3rz #168281 06/01/07 08:55 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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
Joined: Jun 2003
Posts: 92
K
k1ll3rz Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
i tried that command but all it returns is 186:00


k1ll3rz
k1ll3rz #169047 18/01/07 03:12 PM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
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