How can I see the date/time on my apache server via ssh?

11

3

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?

EmmyS

Posted 2012-05-29T21:12:29.350

Reputation: 1 693

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 – 2012-05-29T21:30:10.817

Answers

22

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

bfhd

Posted 2012-05-29T21:12:29.350

Reputation: 2 097

3

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

Indrek

Posted 2012-05-29T21:12:29.350

Reputation: 21 756

0

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

Pini Cheyni

Posted 2012-05-29T21:12:29.350

Reputation: 459