Denys Vlasenko wrote:
On Sunday 03 July 2011 11:37, Klaus Brinkmann wrote:
Hello Denys

What in current text makes it unclear?
         -u      Hardware clock is in UTC
         -l      Hardware clock is in local time
As I described in the linked forum-thread
(http://userpages.uni-koblenz.de/~bbrink/phpBB3/viewtopic.php?f=9&t=16&p=18#p18):

The "is in" in the "--help"-output can be interpreted as "is output in"
and not as it's ment to be interpreted "is kept/stored in". Especially
because the output of "hwclock -ru" or "hwclock -rl" does not clearly
state which timezone the time is shown in. This leads to a different
expected result if you compare it to the "date"-output. Please follow
the above link for the example.
How about this?

-//usage:     "\n       -u      Hardware clock is in UTC"
-//usage:     "\n       -l      Hardware clock is in local time"
+//usage:     "\n       -u      Assume hardware clock is kept in UTC"
+//usage:     "\n       -l      Assume hardware clock is kept in local time"


hwclock from util-linux-2.19.1 does not show timezone.
Busybox tries to mimic 'standard' tools behavior.
The hwclock-command that i use on Gentoo and that _does_ show the
timezone ("CEST" in my case) comes with the portage-package
sys-apps/util-linux-2.19.1 which is from
http://www.kernel.org/pub/linux/utils/util-linux/
  I am surprised that it doesn't show the timezone for you, but that it
does for me (for my Gentoo-PC). I have no idea right now what might be
causing this.
We need more data then.

Fedora 15: doesn't show timezone
Gentoo (which version?): shows timezone
Other distros: ?
Latest canilla util-linux: ?

more data from old busybox:

# hwclock --version
hwclock: unrecognized option `--version'
BusyBox v1.01 (2006.08.20-09:28+0000) multi-call binary

Usage: hwclock [-r|--show] [-s|--hctosys] [-w|--systohc] [-l|--localtime] [-u|--utc]

Query and set the hardware clock (RTC)

Options:
-r read hardware clock and print result
-s set the system time from the hardware clock
-w set the hardware clock to the current system time
-u the hardware clock is kept in coordinated universal time
-l the hardware clock is kept in local time

# hwclock -r
Mon Jul 4 15:48:53 2011 0.000000 seconds


Note: it does not show timezone but does have the words "is kept in" for -u and -l options in the help text. On the other hand, Busybox v1.18.0.git does not show the words "is kept in" in the help text. It also does not show the timezone.

Doug Clapp



_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to