Teach dnssec-settime to read times that it writes
The dnssec-settime -p and -up options print times in asctime() and UNIX time_t formats, respectively. The asctime() format can also be found inside K*.key public key files. Key files also contain times in the YYYYMMDDHHMMSS format that can be used in timing parameter options. The dnssec-settime -p and -up time formats are now acceptable in timing parameter options to dnssec-settime and dnssec-keygen, so it is no longer necessary to parse key files to retrieve times that are acceptable in timing parameter options.
This commit is contained in:
@@ -120,14 +120,21 @@ hardware service module (usually \fBpkcs11\fP).
|
||||
.UNINDENT
|
||||
.SH TIMING OPTIONS
|
||||
.sp
|
||||
Dates can be expressed in the format YYYYMMDD or YYYYMMDDHHMMSS. If the
|
||||
argument begins with a \fB+\fP or \fB\-\fP, it is interpreted as an offset from
|
||||
the present time. For convenience, if such an offset is followed by one
|
||||
of the suffixes \fBy\fP, \fBmo\fP, \fBw\fP, \fBd\fP, \fBh\fP, or \fBmi\fP, then the offset is
|
||||
computed in years (defined as 365 24\-hour days, ignoring leap years),
|
||||
months (defined as 30 24\-hour days), weeks, days, hours, or minutes,
|
||||
respectively. Without a suffix, the offset is computed in seconds. To
|
||||
explicitly prevent a date from being set, use \fBnone\fP or \fBnever\fP\&.
|
||||
Dates can be expressed in the format YYYYMMDD or YYYYMMDDHHMMSS
|
||||
(which is the format used inside key files),
|
||||
or \(aqDay Mon DD HH:MM:SS YYYY\(aq (as printed by \fBdnssec\-settime \-p\fP),
|
||||
or UNIX epoch time (as printed by \fBdnssec\-settime \-up\fP),
|
||||
or the literal \fBnow\fP\&.
|
||||
.sp
|
||||
The argument can be followed by \(aq+\(aq or \(aq\-\(aq and an offset from the
|
||||
given time. The literal \fBnow\fP can be omitted before an offset. The
|
||||
offset can be followed by one of the suffixes \(aqy\(aq, \(aqmo\(aq, \(aqw\(aq, \(aqd\(aq,
|
||||
\(aqh\(aq, or \(aqmi\(aq, so that it is computed in years (defined as 365 24\-hour
|
||||
days, ignoring leap years), months (defined as 30 24\-hour days),
|
||||
weeks, days, hours, or minutes, respectively. Without a suffix, the
|
||||
offset is computed in seconds.
|
||||
.sp
|
||||
To unset a date, use \fBnone\fP or \fBnever\fP\&.
|
||||
.INDENT 0.0
|
||||
.TP
|
||||
.B \-P date/offset
|
||||
|
||||
Reference in New Issue
Block a user