Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

What is the command to update time and date from Internet. Is there any application that allows me to do so graphically?

share|improve this question
    
Can you identify which Ubuntu version you are using? –  david6 Nov 21 '11 at 22:04
    
Do you need extremely accurate time? (If so, you need to familiarize yourself with ntpq and choose time servers). If you just want your time to be (approx.) correct, then try: System Settings >> Time & Date, and check that 'Set the time' is set to 'Automatically from the Internet'. –  david6 Nov 21 '11 at 23:26
    
If you want constantly extremely accurate, install ntpd. This is a small process that runs in the background and adjusts time constantly instead of bursts/jumps, but it will take up a bit of your resources. –  strugee May 24 '13 at 4:08

4 Answers 4

up vote 19 down vote accepted

You can do so with sudo ntpdate time.nist.gov other servers include time.windows.com, etc.

http://www.pool.ntp.org/ lists time servers around the world.

share|improve this answer
1  
I'm getting an error the NTP socket is in use, exiting –  friederbluemle Aug 11 at 2:29
    
@friederbluemle As said in this answer, you have to stop ntp service sudo service ntp stop. Then you can use the command suggested in the answer and finally you can restart the service with sudo service ntp start –  Michele Sep 7 at 14:35

It's very easy to set up from command line: https://help.ubuntu.com/lts/serverguide/NTP.html From that link:

Ubuntu comes with ntpdate as standard, and will run it once at boot time to set up your time according to Ubuntu's NTP server: ntpdate -s ntp.ubuntu.com

Here's GUI example https://help.ubuntu.com/community/UbuntuTime#Time_Synchronization_using_NTP

share|improve this answer
3  
Please do not use links to other sites. When they disappear so does the information you posted. Prevent 'link rot' from happening by answering with the content of the link (and give credit where credit is due). –  Rinzwind Nov 21 '11 at 13:46

sudo dpkg-reconfigure tzdata in terminal should do the trick

You can add extra time zones graphically, i think, by clicking on the clock and going through its options

share|improve this answer
    
Timezones are not really the same as (accurate) time. But, it also not very clear what Vikramjeet was asking either. –  david6 Nov 21 '11 at 22:05
    
What is the command to update time and date from Internet is the question, sudo dpkg-reconfigure tzdata is the answer, so what gives? the comment about the timezones, is related to the only thing i know to be possible graphically –  Jayo Nov 21 '11 at 22:24
    
I assumed that by graphically they meant a graphical (or 'GUI') method, and NOT geographic (or worldwide). –  david6 Nov 21 '11 at 22:55
    
so did i, i am not aware of a way to update the date and time via the net graphically, so i use the terminal, what i do know how to do graphically is set up time zones, the part about time zones was my two cents on what can be done to affect the time in a graphical manner, as far as i knew, am i understood now? –  Jayo Nov 21 '11 at 23:19

You need to install the ntp package. Date/Time settings are availble under system settings. Here's some more information.

share|improve this answer
    
The link is dead... As said by Rinzwind "Please do not use links to other sites. When they disappear so does the information you posted. Prevent 'link rot' from happening by answering with the content of the link (and give credit where credit is due)." Thanks –  Michele Sep 7 at 14:30

Your Answer

 
discard

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.