]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Change of output format and documentation.
authorAnna Jonna Ármannsdóttir <annajonna@gmail.com>
Thu, 28 Jan 2016 19:03:20 +0000 (19:03 +0000)
committerAnna Jonna Ármannsdóttir <annajonna@gmail.com>
Thu, 28 Jan 2016 19:03:20 +0000 (19:03 +0000)
sys-utils/hwclock.8.in
sys-utils/hwclock.c

index dec79020ad29073888536f28e036afa17c369019..d72b7a8ee57329d9631d4e7f7a7aebac3e232f50 100644 (file)
@@ -94,6 +94,10 @@ in UTC.  See the
 .B \%\-\-localtime
 option.
 .sp
+The time shown is in same format as that of 
+.BR \%date (1)
+by default, and additionally, the number of microseconds is shown.
+.sp 
 Showing the Hardware Clock time is the default when no function is specified.
 .sp
 The
@@ -298,7 +302,7 @@ The value of this option is used as an argument to the
 option.  For example:
 .RS
 .IP "" 4
-.B "hwclock\ \-\-set\ \-\-date='2011-08-14\ 16:45:05'
+.B "hwclock\ \-\-set\ \-\-date='2011-08-14\ 16:45:05'"
 .PP
 The argument must be in local time, even if you keep your Hardware Clock in
 UTC.  See the
index b6a46474e5207b5935ac94b0a7ddfbcf34c5d45b..32310b6a41122db30a679d1edbf35294525a6b7c 100644 (file)
@@ -693,7 +693,7 @@ display_time(const bool hclock_valid, struct timeval hwctime)
 
                lt = localtime(&hwctime.tv_sec);
                strftime(ctime_now, sizeof(ctime_now), format, lt);
-               printf(_("%s  .%06d seconds\n"), ctime_now, (int)hwctime.tv_usec);
+               printf(_("%s  and %06d microseconds\n"), ctime_now, (int)hwctime.tv_usec);
        }
 }