Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-03-2007, 01:11 PM   #1
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118

Rep: Reputation: 15
Question Put a date/time from the command line

Hi I usually use the system tools to change date and time however I want to learn how to do this from the command line.

I think that date is the command for it but I see it commonly just giving me a stout but I want to know how to get it in the system.

Can anyone put the command line - line as an example to reset the clock to 00:00

Thanks.... btw yes I read the man, but couldn't make sense of it for setting it in the system.

as a plus can anyone tell me how to change the timezone. Regards.
Old 10-03-2007, 01:48 PM   #2
LQ Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
date [MMDDhhmm[[CC]YY]]

date <Month><Day><Hour><Minute><Century><Year>

date 100300002007

for the timezone you could try tzconfig or tzsetup

Last edited by farslayer; 10-03-2007 at 01:51 PM.


date, time, timezone

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line: How do I backup files modified after a specific date only rm_-rf_windows Linux - General 2 06-28-2007 09:34 PM
date command counts time quicker than hwclock (RTC) carl0ski Linux - Software 2 12-29-2005 06:32 AM
Start Date + Time Duration = End Date/Time calculator? ToBe Linux - General 3 09-26-2005 11:17 AM
date command do not keep time set shanenin Linux - Software 1 09-04-2004 09:16 PM
Syntax for setting up the date via Command line. Lespuff Linux - Newbie 1 11-20-2003 08:35 PM

All times are GMT -5. The time now is 07:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration