Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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

I would like to get local time of server. Is there command/way to get time of server. Operating system is solaris

share|improve this question

I'm not sure why you would like to request the time from a NTP server if you want to get the current local time set on your server.

To do it, simply use the date command.

EDIT: but if you still want to retrieve the time from a NTP server, you can use the ntpdate command followed by the NTP server's IP address.

share|improve this answer
Keeping your local server's time synchronized (with ntp) is critical unless your server operates in isolation from anything else and you don't care about accurate logging, file exchange, etc. NTP is too easy to install and too easy to maintain not to use it. ntpdate is a one-time set-the-clock. Local computer clocks are terrible time-keepers: they drift. ntp keeps time synchronized. – JRFerguson Sep 11 '12 at 15:38

One of the best ways to find a suitable time server is to use the NTP Public Pool. Configure three (3) or more time sources from an appropriate pool (i.e. one geographically close to you).

share|improve this answer

googling around found this:


To configurate it

and this


to reset it.

svcs -a | grep ntp

svcadm restart ntp
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.