Sign in to follow this  
canadave

show current webserver time on website?

Recommended Posts

Hi all,

I have a live streaming video webcam on a website and I'd like to display the current webserver time next to the video stream. Preferably as a normal human readable date and human readable hours:minutes:seconds. Can anyone tell me how I'd retrieve and display that info from the webserver?

Share this post


Link to post
Share on other sites

Hi all,

I have a live streaming video webcam on a website and I'd like to display the current webserver time next to the video stream. Preferably as a normal human readable date and human readable hours:minutes:seconds. Can anyone tell me how I'd retrieve and display that info from the webserver?

It really depends on the scripting language you're using (PHP, Ruby, etc) however any of the date functions they offer should suffice. For PHP you could use the date() and time() functions.

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