LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2010, 07:47 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 36
How do i set time in 24 hour format


Currently whenever i run date command output is shown like

Mon Apr 12 05:17:21 IST 2010

When its 17:17 Here.

How would i change it so that it should show.


Mon Apr 12 17:17:21 IST 2010
 
Old 04-12-2010, 07:52 AM   #2
LouRobytes
Member
 
Registered: Mar 2010
Location: Nova Scotia, Canada
Distribution: Ubuntu & Fedora
Posts: 189

Rep: Reputation: 44
Either Linux thinks you're in the wrong time zone "IST" or you're system time is incorrectly set.

Cheers, Lou
 
Old 04-12-2010, 07:56 AM   #3
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Quote:
Originally Posted by pinga123 View Post
Currently whenever i run date command output is shown like

Mon Apr 12 05:17:21 IST 2010

When its 17:17 Here.

How would i change it so that it should show.


Mon Apr 12 17:17:21 IST 2010
Which linux distribution are you on now?
 
Old 04-12-2010, 08:12 AM   #4
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Rep: Reputation: 58
Have you tired setting the date to the format you want ?
Code:
date -s "12 APR 2010 18:00:00"
Not tested but it should work.

Last edited by PMP; 04-12-2010 at 08:14 AM.
 
Old 04-12-2010, 10:45 AM   #5
bakdong
Member
 
Registered: Apr 2009
Posts: 214

Rep: Reputation: 44
You have to set the time, using date, and your correct timezone too.
 
Old 04-12-2010, 02:23 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
And what's your locale? Does it match your timezone & geographical region?
 
Old 04-13-2010, 07:37 AM   #7
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Quote:
Originally Posted by pinga123 View Post
Currently whenever i run date command output is shown like

Mon Apr 12 05:17:21 IST 2010

When its 17:17 Here.

How would i change it so that it should show.

Mon Apr 12 17:17:21 IST 2010
Have you followed PMP's command?
 
Old 04-13-2010, 04:29 PM   #8
bjrn64
Member
 
Registered: Jan 2008
Location: cheltenham
Distribution: asus 1005ha/2gb ubuntu 9.10 + debian lenny on a tower and asus 901 /1gb backtrack 4
Posts: 33
Blog Entries: 2

Rep: Reputation: 16
hi welcome to LQ if you right click on the time and go to preferences you can change to 24hr format and adjust your time location and even your local weather although i dont know how you get the year
good luck
 
Old 04-14-2010, 12:31 AM   #9
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by bjrn64 View Post
hi welcome to LQ if you right click on the time and go to preferences you can change to 24hr format and adjust your time location and even your local weather although i dont know how you get the year
good luck
I dont have gui window however i have resolved the problem thanks for your support and replies.
 
Old 04-14-2010, 12:52 AM   #10
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Rep: Reputation: 58
@pinga123

It would be great if you post the solution, It would be helpful for other user who face such problem.

And please mark the thread as solved after doing so.
 
  


Reply


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
am/pm verses 24 hour time CouchMaster SUSE / openSUSE 8 05-20-2015 11:13 AM
LXer: Frugal Friday Moves to One-Hour Format LXer Syndicated Linux News 0 04-04-2009 01:10 AM
ntp time off by 1 hour schneidz Linux - Software 8 03-16-2008 11:30 PM
Trying to set password expiration less than 1 hour 3SRT Linux - Newbie 3 11-30-2007 05:46 PM
Why is the time always an hour behind? aaa LQ Suggestions & Feedback 6 07-23-2003 01:34 PM


All times are GMT -5. The time now is 12:08 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration