Function: denote--date-add-current-time
denote--date-add-current-time is a byte-compiled function defined in
denote.el.
Signature
(denote--date-add-current-time DATE)
Documentation
Add current time to DATE, if necessary.
The idea is to turn 2020-01-15 into 2020-01-15 16:19 so that the hour and minute component is not left to 00:00.
This reduces the burden on the user who would otherwise need to input that value in order to avoid the error of duplicate identifiers.
It also addresses a difference between Emacs 28 and Emacs 29 where the former does not read dates without a time component.
Source Code
;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote--date-add-current-time (date)
"Add current time to DATE, if necessary.
The idea is to turn 2020-01-15 into 2020-01-15 16:19 so that the
hour and minute component is not left to 00:00.
This reduces the burden on the user who would otherwise need to
input that value in order to avoid the error of duplicate
identifiers.
It also addresses a difference between Emacs 28 and Emacs 29
where the former does not read dates without a time component."
(if (<= (length date) 10)
(format "%s %s" date (format-time-string "%H:%M:%S" (current-time)))
date))