~grtcdr/giornata

9e26c75fc81211aa9fcecd40f66d3696ff3a8317 — grtcdr a month ago 125a397
Reformat an expression
1 files changed, 6 insertions(+), 5 deletions(-)

M giornata-calendar.el
M giornata-calendar.el => giornata-calendar.el +6 -5
@@ 28,11 28,12 @@ FILENAME is an absolute filename representing a journal entry."
(defun giornata--date-string-to-list (date)
  "Transform DATE string into a list.
DATE must be a valid ISO 8601 date."
  (when-let* ((date (string-replace "/" "-" date))
	      (decoded-date (iso8601-parse-date date))
	      (year (decoded-time-year decoded-date))
	      (month (decoded-time-month decoded-date))
	      (day (decoded-time-day decoded-date)))
  (when-let*
      ((date (string-replace "/" "-" date))
       (decoded-date (iso8601-parse-date date))
       (year (decoded-time-year decoded-date))
       (month (decoded-time-month decoded-date))
       (day (decoded-time-day decoded-date)))
    (list year month day)))

(defun giornata--entries-as-dates (&optional year month)