Sign in to follow this  
Followers 0
CurtisWhitby

Countdown To Date

3 posts in this topic

Hi,

Would it be possible to make a script that calculates the difference between the current time and 1:30PM?

Then would it be possible to loop it so it counts down every second?

Many Thanks,

Curtis

Share this post


Link to post
Share on other sites



Hello Curtis,

look at the _DateDiff() function in the helpfile.

Surely a looping function with a sleep(1000) would do the trick.


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites

Hi Hannes,

Thanks for the help, The _DateDiff() almost did what I wanted it to.

It calculated the difference in seconds and displayed it were I wanted it.

The only problem is I cannot work out how to convert the total seconds into the format HH:MM:SS to display properly.

Any suggestions?

Thanks,

Curtis

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