12

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?

1
  • 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. – Der Hochstapler May 29 '12 at 21:30
23

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

0
4

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

0
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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