Posts Tagged ‘time’

Find System Up Time on Windows

Posted: 09/30/2011 in Windows
Tags: , , ,

To see the system up time, follow the steps below.

Step 1: Type cmd on run.

Step 2: Enter the following command at the command prompt:

systeminfo|find "Time:"

But it is easier to see the system up time in Windows 7. Here are the steps.

Step 1: Lunch Task Manager.

Ctrl+Alt+Delete
Right Click and select Task Manager
Ctrl+Shift+Escape

Step 2: Click on the Performance Tab.

The system’s up-time is displayed next to Up Time in the format of Days:Hours:Minutes:Seconds.

Important Files

/usr/share/zoneinfo — contains time zone information for many different regions
/etc/timezone — holds the timezone
/etc/localtime — a symbolic link to the correct file in /path/usr/share/zoneinfo/
etc/ntp.conf — configuration file for NTP
/etc/ntp.drift — where NTP stores correction for local clock being fast/slow

Commands

date — display/set system time
hwclock — query and set the hardware clock (RTC)
ntpdate — used to set system date and time via NTP

The Hardware and The System Clock

The hardware or Real Time Clock (RTC) hardware clock is located on the motherboard.
System Clock is maintained in the Linux kernel and is used while the system is running.

hwclock options

Set the system time from the RTC

hwclock -s or hwclock --hctosys

Set the RTC from the system time

hwclock -w or hwclock --systohc

Display the contents of the RTC

hwclock -r or hwclock --show 

Ajust the RTC for clock drift

hwclock -a or hwclock --adjust

The file /etc/adjtime is used to hold information about the extent to which (and direction) the RTC drifts.