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 Professional Discussion / Calculating time difference

Author
Message
Ben_UK78
15
Years of Service
User Offline
Joined: 10th Jul 2010
Location:
Posted: 4th Aug 2012 07:43
Hi All,

Does anyone know of a simple way of calculating the number of minutes between one output of 'get time$' and another? Especially if we start including 'get date$'.

Does anyone have a method to hand?

Cheers
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 4th Aug 2012 17:43
start from this code:



Ben_UK78
15
Years of Service
User Offline
Joined: 10th Jul 2010
Location:
Posted: 5th Aug 2012 06:01
Thanks. Completed.

The program will calculate the number of days between any two dates in history, then calculate the number of minutes between two times on those dates and output the two values.

Ben_UK78
15
Years of Service
User Offline
Joined: 10th Jul 2010
Location:
Posted: 5th Aug 2012 06:05
Oh. I didn't prune out all the local variables that I put in for testing and were not needed in the end code. They stand out like a sore thumb though.

Login to post a reply

Server time is: 2026-07-07 18:20:49
Your offset time is: 2026-07-07 18:20:49