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
https://forums.phpfreaks.com/topic/74896-best-way-to-makeing-a-ticking-clock/
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.