14

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. May 29, 2012 at 21:30

3 Answers 3

25

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .