- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Set Clock
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2001 11:51 AM
тАО09-26-2001 11:51 AM
Should I/Can I sync the hardware clock to this new time. If so how would I go about doing so?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2001 01:14 PM
тАО09-26-2001 01:14 PM
SolutionTo set system date/time using command-line (as root) :
root@mycomputer# date MMDDhhmm
Where :
MM -> month (01..12)
DD -> day (01..31)
hh -> hour (00..23)
mm -> minute (00..59)
Nobody can't tell you if you should synchronize system time with hardware clock. If you were located on the Greenwitch Meridian Timezone (GMT), I would say : of course yes, you have to do os.
In any other case, I can say : it's up to you.
Some people say that you should set the hardware clock to GMT (also called UTC) and use the TIMEZONE environment variable to specify the time shift between UTC and your local meridian.
For my part, I set hardware clock directly to my local time.
To synchronize hardware clock with system clock (or vice-versa) :
root@mycomputer# hwclock --systohc
To get all options :
root@mycomputer# hwclock --help
Good luck.
Kodjo
P.S. Don't hesitate to assign points to this answer (from 1 to 10).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2001 01:19 PM
тАО09-26-2001 01:19 PM
Re: Set Clock
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2001 01:26 PM
тАО09-26-2001 01:26 PM
Re: Set Clock
date is great for setting time manually, but ntpd is the way to go to ensure time is always accurate.
You can also use ntpdate to sync time immediately to an ntp server at your site or on the internet.
Example: /usr/sbin/ntpdate -b -s -p 8 ntp-0.cso.uiuc.edu ns.nts.umn.edu harbor.ecn.purdue.edu
This syncs time among 3 internet NTP servers.
If you put servers like these in /etc/ntp.conf and start ntpd then your time should always be accurate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2001 01:35 PM
тАО09-26-2001 01:35 PM