Jump to content

Best way to makeing a ticking clock


burtybob

Recommended Posts

I have a bank script that gets the time from a databse however putting it into the database i use

time()+24*60*60 which is one day.

 

However this means that in the database is all those number what i would like to do is turn it from those numbers into a time and then have it "tick" down...

 

OR

 

Maybe just be able to skip the bit with turning it into a date and just make it so i can "tick" down

 

23:59:59

23:59:58

23:59:57

23:59:56

23:59:55

23:59:54

 

etc.

Please does anyone know how i can do this?

Link to comment
Share on other sites

You want Javascript for this

I have javascript but it cant use the weird timestamp and countdown as a

23:59:40

Style that is why im asking about changing from timestamp to date and then countdown i think now maybe,

should i be using date()?

 

I know how to countdown but i need to change it from php readable to javascript readable

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.