LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-03-2007, 12:11 PM   #1
Jzarecta
Member
 
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, 12:48 PM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
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 12:51 PM.
 
  


Reply

Tags
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 08:34 PM
date command counts time quicker than hwclock (RTC) carl0ski Linux - Software 2 12-29-2005 05:32 AM
Start Date + Time Duration = End Date/Time calculator? ToBe Linux - General 3 09-26-2005 10:17 AM
date command do not keep time set shanenin Linux - Software 1 09-04-2004 08:16 PM
Syntax for setting up the date via Command line. Lespuff Linux - Newbie 1 11-20-2003 07:35 PM


All times are GMT -5. The time now is 03:44 AM.

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