Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / What time is it?

Author
Message
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 29th Nov 2004 17:50
Can I get the current time?

I want to run an exe then wait for a certain time for it to run itself. Is this possible with DB Classic?

Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 29th Nov 2004 18:00
not sure what you mean, but ti get the time use this command: get time$() that will give you the current time...


This is a Map Editor ver 2 DEMO Out now! http://www.tiame.tk
Damokles
21
Years of Service
User Offline
Joined: 28th May 2003
Location: Belgium
Posted: 29th Nov 2004 18:12
Yes, it's possible, I made that a while ago to scare somebody

Just hide the window
Then insert this :

Start = TIMER()
REPEAT
UNTIL TIMER() > Start + 5000


Then you can make your window appear again and run the program

- Mind the gap -
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 29th Nov 2004 23:55
Ah, I can get the time. Good!

JON VIATTE
20
Years of Service
User Offline
Joined: 5th Dec 2004
Location: doghouse
Posted: 5th Dec 2004 07:29
I know how to get the time, but my problem is how to use it. How do you tell it, for example, "if it's later than eight a'clock, then delete the light"?

Login to post a reply

Server time is: 2025-05-24 19:41:06
Your offset time is: 2025-05-24 19:41:06