Prettify docstring

This commit is contained in:
Daniel - 2020-01-09 21:35:12 +01:00
parent 52de03a8c0
commit 57107c0c75
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 3 additions and 2 deletions

View File

@ -202,8 +202,9 @@ might depend on the coding system of the current buffer."
(message result)))) (message result))))
(defun db/ntp-to-time (high low &optional format-string) (defun db/ntp-to-time (high low &optional format-string)
"Format NTP time given by HIGH and LOW (both hex strings) to time as given by FORMAT-STRING. "Format NTP time given by HIGH and LOW to time as given by FORMAT-STRING.
If not given, FORMAT-STRING defaults to some ISO 8601-like format." HIGH and LOW must both be 8 digit hex strings. If not given,
FORMAT-STRING defaults to some ISO 8601-like format."
(interactive (cl-flet ((read-hex (prompt) (interactive (cl-flet ((read-hex (prompt)
(string-to-number (->> prompt (string-to-number (->> prompt
(read-string) (read-string)