Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a function I can run at the command line (with ssh access) to see the date and time that's set on my apache server?

share|improve this question
Apache is in application that can be run on many different operating systems. The operating system is what is important in this question. The Apache HTTP server is pretty much irrelevant. – Oliver Salzburg May 29 '12 at 21:30
up vote 8 down vote accepted

You can usually use date, that should be available on most (if not all) *nix OSes.

share|improve this answer
Thanks, that's what I needed. – EmmyS May 29 '12 at 21:47

Assuming your Apache server is running Linux (or some other Unix-like OS), the date command will show the current date and time.

share|improve this answer
Thanks. That's what I needed. – EmmyS May 29 '12 at 21:46

You can use date("H:i:s d/m/y", time()); to get the time stamp for current time

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.