Sign in to follow this  
Followers 0
epicfail

time @hour help

5 posts in this topic

hi i wanted to know if any1 could helpme.Im trying to have a msgbox pop up saying what time it will start the bot at i tryed this MsgBox(0, "start time", @HOUR + 10 & ":" & @MIN) but when i use +10 or what eva it just adds to the time so say its 21:00 it makes it 31:00 how can i make it change to the proper timeit will be when it starts at so say its 21:00 and i want my bot to say it will start in 10hours from now it will display 7:00 not 31:00

Share this post


Link to post
Share on other sites



hi i wanted to know if any1 could helpme.Im trying to have a msgbox pop up saying what time it will start the bot at i tryed this MsgBox(0, "start time", @HOUR + 10 & ":" & @MIN) but when i use +10 or what eva it just adds to the time so say its 21:00 it makes it 31:00 how can i make it change to the proper timeit will be when it starts at so say its 21:00 and i want my bot to say it will start in 10hours from now it will display 7:00 not 31:00

First check if hour is greater than 12, if so then subtract YourTime+2 from @hour.If hour is less than 12 then just add YourTime+2. Note: It won't work for minutes. Need to change the logic

[size="4"][font="Arial Narrow"][font="Garamond"]Attitude is a little thing that makes a big difference[/font][/font][/size][indent][/indent]

Share this post


Link to post
Share on other sites

i cant work out how to do that

Share this post


Link to post
Share on other sites

Use DateAdd.

Share this post


Link to post
Share on other sites

omg ty that was heaps easier lol. anyway to change that to 12 hour time?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0