<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Fhwclock</id>
	<title>Comandos de la terminal/hwclock - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Fhwclock"/>
	<link rel="alternate" type="text/html" href="https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/hwclock&amp;action=history"/>
	<updated>2026-04-04T22:57:20Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/hwclock&amp;diff=5169&amp;oldid=prev</id>
		<title>Rrc en 18:12 23 ene 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/hwclock&amp;diff=5169&amp;oldid=prev"/>
		<updated>2014-01-23T18:12:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[:#hwclock | hwclock]]&lt;br /&gt;
&lt;br /&gt;
== hwclock ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[root@pridd ~]# hwclock --version&lt;br /&gt;
hwclock from util-linux 2.22.2&lt;br /&gt;
[root@pridd ~]# hwclock --help&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
 hwclock [function] [option...]&lt;br /&gt;
&lt;br /&gt;
Functions:&lt;br /&gt;
 -h, --help           show this help text and exit&lt;br /&gt;
 -r, --show           read hardware clock and print result&lt;br /&gt;
     --set            set the RTC to the time given with --date&lt;br /&gt;
 -s, --hctosys        set the system time from the hardware clock&lt;br /&gt;
 -w, --systohc        set the hardware clock from the current system time&lt;br /&gt;
     --systz          set the system time based on the current timezone&lt;br /&gt;
     --adjust         adjust the RTC to account for systematic drift since&lt;br /&gt;
                        the clock was last set or adjusted&lt;br /&gt;
     --getepoch       print out the kernel&amp;#039;s hardware clock epoch value&lt;br /&gt;
     --setepoch       set the kernel&amp;#039;s hardware clock epoch value to the &lt;br /&gt;
                        value given with --epoch&lt;br /&gt;
     --predict        predict RTC reading at time given with --date&lt;br /&gt;
 -V, --version        display version information and exit&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
 -u, --utc            the hardware clock is kept in UTC&lt;br /&gt;
     --localtime      the hardware clock is kept in local time&lt;br /&gt;
 -f, --rtc &amp;lt;file&amp;gt;     special /dev/... file to use instead of default&lt;br /&gt;
     --directisa      access the ISA bus directly instead of /dev/rtc&lt;br /&gt;
     --badyear        ignore RTC&amp;#039;s year because the BIOS is broken&lt;br /&gt;
     --date &amp;lt;time&amp;gt;    specifies the time to which to set the hardware clock&lt;br /&gt;
     --epoch &amp;lt;year&amp;gt;   specifies the year which is the beginning of the&lt;br /&gt;
                        hardware clock&amp;#039;s epoch value&lt;br /&gt;
     --noadjfile      do not access /etc/adjtime; this requires the use of&lt;br /&gt;
                        either --utc or --localtime&lt;br /&gt;
     --adjfile &amp;lt;file&amp;gt; specifies the path to the adjust file;&lt;br /&gt;
                        the default is /etc/adjtime&lt;br /&gt;
     --test           do not update anything, just show what would happen&lt;br /&gt;
 -D, --debug          debugging mode&lt;br /&gt;
&lt;br /&gt;
[root@pridd ~]# hwclock&lt;br /&gt;
Thu 23 Jan 2014 12:06:10 PM CST  -0.282194 seconds&lt;br /&gt;
[root@pridd ~]# hwclock -r&lt;br /&gt;
Thu 23 Jan 2014 12:06:13 PM CST  -0.172749 seconds&lt;br /&gt;
[root@pridd ~]# hwclock --show&lt;br /&gt;
Thu 23 Jan 2014 12:06:19 PM CST  -0.047776 seconds&lt;br /&gt;
&lt;br /&gt;
Se muestra el tiempo en tiempo local. No importa si el reloj está en UTC&lt;br /&gt;
&lt;br /&gt;
[root@pridd ~]# hwclock --systohc --test&lt;br /&gt;
Clock not changed - testing only.&lt;br /&gt;
Not updating adjtime file because of testing mode.&lt;br /&gt;
Would have written the following to /etc/adjtime:&lt;br /&gt;
0.000134 1390500511 0.000000&lt;br /&gt;
1390500511&lt;br /&gt;
LOCAL&lt;br /&gt;
&lt;br /&gt;
[root@pridd ~]# hwclock --systohc -u --test&lt;br /&gt;
Clock not changed - testing only.&lt;br /&gt;
Not updating adjtime file because of testing mode.&lt;br /&gt;
Would have written the following to /etc/adjtime:&lt;br /&gt;
247.795551 1390500548 0.000000&lt;br /&gt;
1390500548&lt;br /&gt;
UTC&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Comandos de la terminal]]&lt;/div&gt;</summary>
		<author><name>Rrc</name></author>
		
	</entry>
</feed>