aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-04-25 15:06:05 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-04-25 15:06:05 +0200
commit590aef9932d5e55aca2d9939dbc860763b098c29 (patch)
treee754a1115ad5f74b07cca607eaaa30f62b96ab00
parentRecurrence internal export! count. (diff)
downloadcalp-590aef9932d5e55aca2d9939dbc860763b098c29.tar.gz
calp-590aef9932d5e55aca2d9939dbc860763b098c29.tar.xz
Add comments in vcomponent/parse.
-rw-r--r--module/vcomponent/parse.scm10
1 files changed, 10 insertions, 0 deletions
diff --git a/module/vcomponent/parse.scm b/module/vcomponent/parse.scm
index a2f14316..fdae22dc 100644
--- a/module/vcomponent/parse.scm
+++ b/module/vcomponent/parse.scm
@@ -211,6 +211,11 @@ row ~a column ~a ctx = ~a
(not (attr component 'DTEND)))
(set! (attr component 'DTEND)
(let ((start (attr component 'DTSTART)))
+ ;; p. 54, 3.6.1
+ ;; If DTSTART is a date then it's an all
+ ;; day event. If DTSTART instead is a
+ ;; datetime then the event has a length
+ ;; of 0?
(if (date? start)
(date+ start (date day: 1))
(datetime+ start (datetime time: (time hour: 1)))))))
@@ -348,6 +353,11 @@ row ~a column ~a ctx = ~a
;; components, but they are still the same event.
;; In our case this means exceptions to reccurence rules, which
;; is set up here, and then later handled in rrule-generate.
+ ;; NOTE These events also share UID, but are diferentiated
+ ;; by RECURRENCE-ID. As far as I can tell this goes against
+ ;; the standard. Section 3.8.4.4.
+ ;; TODO Also make this grouping when reading in a whole
+ ;; icalendar-file (one with multiple events)
(case (length events)
[(0) (format (current-error-port)
"WARNING: No events in component~%~a~%"