Difference b/w hardware time and system time












5















I'd like to know the difference between Linux "hardware time" and "system time".




What time does the computer use from the point of view of a process querying it ?
Is it Hardware or system?











share|improve this question

























  • It would be helpful if you refined your question. There are so many relations between the two times, yet there are also so many differences. "Which time does the computer use?" It uses both for different purposes. "What is the difference?" Here you need to clarify the perspective. Do you mean, from the point of view of a process? Or from the system administrator's perspective? Or something else?

    – Run CMD
    Mar 13 '15 at 8:23











  • From the point of view of a process..

    – vipin kumar
    Mar 13 '15 at 9:45
















5















I'd like to know the difference between Linux "hardware time" and "system time".




What time does the computer use from the point of view of a process querying it ?
Is it Hardware or system?











share|improve this question

























  • It would be helpful if you refined your question. There are so many relations between the two times, yet there are also so many differences. "Which time does the computer use?" It uses both for different purposes. "What is the difference?" Here you need to clarify the perspective. Do you mean, from the point of view of a process? Or from the system administrator's perspective? Or something else?

    – Run CMD
    Mar 13 '15 at 8:23











  • From the point of view of a process..

    – vipin kumar
    Mar 13 '15 at 9:45














5












5








5


3






I'd like to know the difference between Linux "hardware time" and "system time".




What time does the computer use from the point of view of a process querying it ?
Is it Hardware or system?











share|improve this question
















I'd like to know the difference between Linux "hardware time" and "system time".




What time does the computer use from the point of view of a process querying it ?
Is it Hardware or system?








linux






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 8 hours ago









jlliagre

47.4k784135




47.4k784135










asked Mar 13 '15 at 6:56









vipin kumarvipin kumar

3931311




3931311













  • It would be helpful if you refined your question. There are so many relations between the two times, yet there are also so many differences. "Which time does the computer use?" It uses both for different purposes. "What is the difference?" Here you need to clarify the perspective. Do you mean, from the point of view of a process? Or from the system administrator's perspective? Or something else?

    – Run CMD
    Mar 13 '15 at 8:23











  • From the point of view of a process..

    – vipin kumar
    Mar 13 '15 at 9:45



















  • It would be helpful if you refined your question. There are so many relations between the two times, yet there are also so many differences. "Which time does the computer use?" It uses both for different purposes. "What is the difference?" Here you need to clarify the perspective. Do you mean, from the point of view of a process? Or from the system administrator's perspective? Or something else?

    – Run CMD
    Mar 13 '15 at 8:23











  • From the point of view of a process..

    – vipin kumar
    Mar 13 '15 at 9:45

















It would be helpful if you refined your question. There are so many relations between the two times, yet there are also so many differences. "Which time does the computer use?" It uses both for different purposes. "What is the difference?" Here you need to clarify the perspective. Do you mean, from the point of view of a process? Or from the system administrator's perspective? Or something else?

– Run CMD
Mar 13 '15 at 8:23





It would be helpful if you refined your question. There are so many relations between the two times, yet there are also so many differences. "Which time does the computer use?" It uses both for different purposes. "What is the difference?" Here you need to clarify the perspective. Do you mean, from the point of view of a process? Or from the system administrator's perspective? Or something else?

– Run CMD
Mar 13 '15 at 8:23













From the point of view of a process..

– vipin kumar
Mar 13 '15 at 9:45





From the point of view of a process..

– vipin kumar
Mar 13 '15 at 9:45










2 Answers
2






active

oldest

votes


















10














The system time is maintained by the operating system, it is the one the processes will get when querying the date/time. Being stored in RAM, reading it is a fast operation.



The hardware time is maintained by a real clock powered by a battery. That means this clock persist a reboot. However, reading it implies performing a I/O operation which is more resource intensive than reading the system clock.



For that reason, the hardware clock is seldom used, mainly at boot time to set the system clock initial value, and then optionally to adjust/synchronize it either manually or through NTP.



Note that the hardware clock might be set to either the local time or UTC time while the system clock is always set on Unix/Linux systems to UTC time.






share|improve this answer



















  • 1





    This is a very clear and concise answer. Obviously the question leaves open several possibilities as to what a proper response might be but the @jlliagre has intelligently chosen a very clear and concise response.

    – darbehdar
    Oct 4 '16 at 5:14



















-2














Hardware time is depends Upon the BIOS ...the Bios battery controls that ..so when a system shutdown its also work ..



 hwclock --show -->for hwd
date -->for sys





share|improve this answer


























  • "so when a system shutdown its also work" -- what's that suppose to mean???

    – vipin kumar
    Mar 13 '15 at 7:34






  • 1





    I guess that by 'so when a system shutdown its also work' you mean, hwclock still work when host is powered off (and battery still has power).

    – Archemar
    Mar 13 '15 at 9:06











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f189880%2fdifference-b-w-hardware-time-and-system-time%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









10














The system time is maintained by the operating system, it is the one the processes will get when querying the date/time. Being stored in RAM, reading it is a fast operation.



The hardware time is maintained by a real clock powered by a battery. That means this clock persist a reboot. However, reading it implies performing a I/O operation which is more resource intensive than reading the system clock.



For that reason, the hardware clock is seldom used, mainly at boot time to set the system clock initial value, and then optionally to adjust/synchronize it either manually or through NTP.



Note that the hardware clock might be set to either the local time or UTC time while the system clock is always set on Unix/Linux systems to UTC time.






share|improve this answer



















  • 1





    This is a very clear and concise answer. Obviously the question leaves open several possibilities as to what a proper response might be but the @jlliagre has intelligently chosen a very clear and concise response.

    – darbehdar
    Oct 4 '16 at 5:14
















10














The system time is maintained by the operating system, it is the one the processes will get when querying the date/time. Being stored in RAM, reading it is a fast operation.



The hardware time is maintained by a real clock powered by a battery. That means this clock persist a reboot. However, reading it implies performing a I/O operation which is more resource intensive than reading the system clock.



For that reason, the hardware clock is seldom used, mainly at boot time to set the system clock initial value, and then optionally to adjust/synchronize it either manually or through NTP.



Note that the hardware clock might be set to either the local time or UTC time while the system clock is always set on Unix/Linux systems to UTC time.






share|improve this answer



















  • 1





    This is a very clear and concise answer. Obviously the question leaves open several possibilities as to what a proper response might be but the @jlliagre has intelligently chosen a very clear and concise response.

    – darbehdar
    Oct 4 '16 at 5:14














10












10








10







The system time is maintained by the operating system, it is the one the processes will get when querying the date/time. Being stored in RAM, reading it is a fast operation.



The hardware time is maintained by a real clock powered by a battery. That means this clock persist a reboot. However, reading it implies performing a I/O operation which is more resource intensive than reading the system clock.



For that reason, the hardware clock is seldom used, mainly at boot time to set the system clock initial value, and then optionally to adjust/synchronize it either manually or through NTP.



Note that the hardware clock might be set to either the local time or UTC time while the system clock is always set on Unix/Linux systems to UTC time.






share|improve this answer













The system time is maintained by the operating system, it is the one the processes will get when querying the date/time. Being stored in RAM, reading it is a fast operation.



The hardware time is maintained by a real clock powered by a battery. That means this clock persist a reboot. However, reading it implies performing a I/O operation which is more resource intensive than reading the system clock.



For that reason, the hardware clock is seldom used, mainly at boot time to set the system clock initial value, and then optionally to adjust/synchronize it either manually or through NTP.



Note that the hardware clock might be set to either the local time or UTC time while the system clock is always set on Unix/Linux systems to UTC time.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 13 '15 at 10:10









jlliagrejlliagre

47.4k784135




47.4k784135








  • 1





    This is a very clear and concise answer. Obviously the question leaves open several possibilities as to what a proper response might be but the @jlliagre has intelligently chosen a very clear and concise response.

    – darbehdar
    Oct 4 '16 at 5:14














  • 1





    This is a very clear and concise answer. Obviously the question leaves open several possibilities as to what a proper response might be but the @jlliagre has intelligently chosen a very clear and concise response.

    – darbehdar
    Oct 4 '16 at 5:14








1




1





This is a very clear and concise answer. Obviously the question leaves open several possibilities as to what a proper response might be but the @jlliagre has intelligently chosen a very clear and concise response.

– darbehdar
Oct 4 '16 at 5:14





This is a very clear and concise answer. Obviously the question leaves open several possibilities as to what a proper response might be but the @jlliagre has intelligently chosen a very clear and concise response.

– darbehdar
Oct 4 '16 at 5:14













-2














Hardware time is depends Upon the BIOS ...the Bios battery controls that ..so when a system shutdown its also work ..



 hwclock --show -->for hwd
date -->for sys





share|improve this answer


























  • "so when a system shutdown its also work" -- what's that suppose to mean???

    – vipin kumar
    Mar 13 '15 at 7:34






  • 1





    I guess that by 'so when a system shutdown its also work' you mean, hwclock still work when host is powered off (and battery still has power).

    – Archemar
    Mar 13 '15 at 9:06
















-2














Hardware time is depends Upon the BIOS ...the Bios battery controls that ..so when a system shutdown its also work ..



 hwclock --show -->for hwd
date -->for sys





share|improve this answer


























  • "so when a system shutdown its also work" -- what's that suppose to mean???

    – vipin kumar
    Mar 13 '15 at 7:34






  • 1





    I guess that by 'so when a system shutdown its also work' you mean, hwclock still work when host is powered off (and battery still has power).

    – Archemar
    Mar 13 '15 at 9:06














-2












-2








-2







Hardware time is depends Upon the BIOS ...the Bios battery controls that ..so when a system shutdown its also work ..



 hwclock --show -->for hwd
date -->for sys





share|improve this answer















Hardware time is depends Upon the BIOS ...the Bios battery controls that ..so when a system shutdown its also work ..



 hwclock --show -->for hwd
date -->for sys






share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 13 '15 at 9:04









Archemar

20.2k93772




20.2k93772










answered Mar 13 '15 at 7:16









user106436user106436

1




1













  • "so when a system shutdown its also work" -- what's that suppose to mean???

    – vipin kumar
    Mar 13 '15 at 7:34






  • 1





    I guess that by 'so when a system shutdown its also work' you mean, hwclock still work when host is powered off (and battery still has power).

    – Archemar
    Mar 13 '15 at 9:06



















  • "so when a system shutdown its also work" -- what's that suppose to mean???

    – vipin kumar
    Mar 13 '15 at 7:34






  • 1





    I guess that by 'so when a system shutdown its also work' you mean, hwclock still work when host is powered off (and battery still has power).

    – Archemar
    Mar 13 '15 at 9:06

















"so when a system shutdown its also work" -- what's that suppose to mean???

– vipin kumar
Mar 13 '15 at 7:34





"so when a system shutdown its also work" -- what's that suppose to mean???

– vipin kumar
Mar 13 '15 at 7:34




1




1





I guess that by 'so when a system shutdown its also work' you mean, hwclock still work when host is powered off (and battery still has power).

– Archemar
Mar 13 '15 at 9:06





I guess that by 'so when a system shutdown its also work' you mean, hwclock still work when host is powered off (and battery still has power).

– Archemar
Mar 13 '15 at 9:06


















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f189880%2fdifference-b-w-hardware-time-and-system-time%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Histoire des bourses de valeurs

Why is there Russian traffic in my log files?

Rename multiple files to decrement number in file name?