diff options
author | J William Piggott | 2017-03-04 21:03:44 +0100 |
---|---|---|
committer | J William Piggott | 2017-03-04 21:03:44 +0100 |
commit | b80d6d4be8371b6e8fa4a31a1fc1f7ce57a91be7 (patch) | |
tree | 7d63d7fddfd5124eb319df9a5d8933978692fbfe /sys-utils/hwclock.8.in | |
parent | hwclock: use parse_date function (diff) | |
download | kernel-qcow2-util-linux-b80d6d4be8371b6e8fa4a31a1fc1f7ce57a91be7.tar.gz kernel-qcow2-util-linux-b80d6d4be8371b6e8fa4a31a1fc1f7ce57a91be7.tar.xz kernel-qcow2-util-linux-b80d6d4be8371b6e8fa4a31a1fc1f7ce57a91be7.zip |
lib: add parse-date documentation
* Documentation/parse-date.txt - new file
* sys-utils/hwclock.8.in
Fix the --date option description.
Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'sys-utils/hwclock.8.in')
-rw-r--r-- | sys-utils/hwclock.8.in | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sys-utils/hwclock.8.in b/sys-utils/hwclock.8.in index 2dec7823e..78e53aeb1 100644 --- a/sys-utils/hwclock.8.in +++ b/sys-utils/hwclock.8.in @@ -282,27 +282,27 @@ end up losing a day. . .TP .BI \%\-\-date= date_string -You need this option if you specify the +This option must be used with the .B \-\-set or .B \%\-\-predict functions, otherwise it is ignored. -It specifies the time to which to set the Hardware Clock, or the -time for which to predict the Hardware Clock reading. -The value of this option is used as an argument to the -.BR date "(1) program's " \-\-date -option. For example: .RS .IP "" 4 -.B "hwclock\ \-\-set\ \-\-date='2011-08-14\ 16:45:05'" +.B "hwclock\ \-\-set\ \-\-date='16:45'" +.IP "" 4 +.B "hwclock\ \-\-predict\ \-\-date='2525-08-14\ 07:11:05'" .PP The argument must be in local time, even if you keep your Hardware Clock in -UTC. See the +UTC. See the .B \%\-\-localtime -option. The argument must not be a relative time like "+5 minutes", because +option. Therefore, the argument should not include any timezone information. +It also should not be a relative time like "+5 minutes", because .BR \%hwclock 's -precision depends upon correlation between the argument's value and when -the enter key is pressed. +precision depends upon correlation between the argument's value and when the +enter key is pressed. Fractional seconds are silently dropped. This option is +capable of understanding many time and date formats, but the previous +parameters should be observed. .RE . .TP |