LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Change system time or date or both (https://www.linuxquestions.org/questions/linux-newbie-8/change-system-time-or-date-or-both-109596/)

lel800 10-28-2003 02:28 PM

Change system time or date or both
 
Hello,

How can I change the time and date on Linux?

Thank you in advance.

david_ross 10-28-2003 02:39 PM

look at the "date" command:
man date

or sync with an ntp server using:
ntpdate time.nist.gov
rdate -s time.nist.gov

druuna 10-28-2003 02:41 PM

man date
man time
man hwclock

Here's and example:

date --set="Tue Jun 10 17:50:05"

lel800 10-28-2003 02:57 PM

Thank you both for your posts...

I did as david_ross suggested and checked the man pages. And there I found that I could use "--set" to set the date, passing in some string. I was confused about what sort of string to use.

Then I noticed the post by druuna and I used

date --set="Wed Oct 28 13:53:00"

I logged out and back in again and I noticed that it worked.

Thanks again to you.

Tinkster 10-28-2003 03:10 PM

Quote:

Originally posted by druuna
Sorry, this is your first post I came across
and I'm TOO curious .... your nick is from
Serpieri's comics? :)

Your footer looks familiar :}

Cheers,
Tink

druuna 10-28-2003 06:29 PM

Yep. Guilty, I'm a big Druuna fan :)

I don't even remember where I got the sig. It's been so for the last 15 years or so. I know it's not mine, but cannot remember where I read it (anyone??).

Tinkster 10-28-2003 07:00 PM

Quote:

Originally posted by druuna
Yep. Guilty, I'm a big Druuna fan :)
It's a bit chaotic but ummmmh, quite
exquisit drawing skills ... Paolo teaches
art somewhere in Italy, right?

As for the footer, I can't recall, either :}
/me is old ;)

Cheers,
Tink

P.S.: I apologise for the OT!


All times are GMT -5. The time now is 02:54 AM.