summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock.8.in
diff options
context:
space:
mode:
authorJ William Piggott2017-07-14 21:51:47 +0200
committerJ William Piggott2017-07-16 14:41:54 +0200
commitf7599b4f86f0db5856770fcdaeb599b76ea64b64 (patch)
tree6eaec6e681b6f35a7073724031601602d8ea32e7 /sys-utils/hwclock.8.in
parentlibfdisk: make fdisk compliant to UEFI/GPT specification on PMBR (diff)
downloadkernel-qcow2-util-linux-f7599b4f86f0db5856770fcdaeb599b76ea64b64.tar.gz
kernel-qcow2-util-linux-f7599b4f86f0db5856770fcdaeb599b76ea64b64.tar.xz
kernel-qcow2-util-linux-f7599b4f86f0db5856770fcdaeb599b76ea64b64.zip
hwclock: --epoch presence test fails
hwclock --setepoch --epoch 0 Will warn that the epoch option is required. The --epoch presence test is made on its argument after it is converted to an integer. This means any value it can be tested for, can also be given as an input. So make the conversion after the presence test, like the --date option does. Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'sys-utils/hwclock.8.in')
-rw-r--r--sys-utils/hwclock.8.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys-utils/hwclock.8.in b/sys-utils/hwclock.8.in
index fa8a19af6..b616e3f5e 100644
--- a/sys-utils/hwclock.8.in
+++ b/sys-utils/hwclock.8.in
@@ -305,6 +305,9 @@ methods fail. See the
.BI \-\-epoch= year
This option is required when using the
.BR \%\-\-setepoch \ function.
+.RI "The minimum " year
+value is 1900. The maximum is system dependent
+.RB ( ULONG_MAX\ -\ 1 ).
.
.TP
.BR \-f , \ \-\-rtc=\fIfilename\fR