| 
					
				 | 
			
			
				@@ -4905,8 +4905,10 @@ the rounding returns a past time." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (if (< r 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	now 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (let* ((time (decode-time now)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	     (res (apply #'encode-time 0 (* r (round (nth 1 time) r)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			 (nthcdr 2 time)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	     (res (org-encode-time 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                   (apply #'list 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                          0 (* r (round (nth 1 time) r)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                          (nthcdr 2 time))))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	(if (or (not past) (time-less-p res now)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	    res 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	  (time-subtract res (* r 60))))))) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -8932,7 +8934,7 @@ nil or a string to be used for the todo mark." ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	   (org-use-last-clock-out-time-as-effective-time 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	    (or (org-clock-get-last-clock-out-time) ct)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	   ((and org-use-effective-time (< (nth 2 dct) org-extend-today-until)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	    (encode-time 0 59 23 (1- (nth 3 dct)) (nth 4 dct) (nth 5 dct))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	    (org-encode-time 0 59 23 (1- (nth 3 dct)) (nth 4 dct) (nth 5 dct))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	   (t ct)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ct1)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -10091,9 +10093,9 @@ WHAT entry will also be removed." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	      (if (stringp time) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		  ;; This is a string (relative or absolute), set 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		  ;; proper date. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		  (apply #'encode-time 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		         (org-read-date-analyze 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			  time default-time (decode-time default-time))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		  (org-encode-time 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		   (org-read-date-analyze 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		    time default-time (decode-time default-time))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	        ;; If necessary, get the time from the user 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	        (or time (org-read-date nil 'to-time nil 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				     (cl-case what 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -13481,7 +13483,7 @@ user." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (when (< (nth 2 org-defdecode) org-extend-today-until) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (setf (nth 2 org-defdecode) -1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (setf (nth 1 org-defdecode) 59) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      (setq org-def (apply #'encode-time org-defdecode)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      (setq org-def (org-encode-time org-defdecode)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (setq org-defdecode (decode-time org-def))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (let* ((timestr (format-time-string 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		     (if org-with-time "%Y-%m-%d %H:%M" "%Y-%m-%d") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -13554,7 +13556,7 @@ user." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		 "range representable on this machine")) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (ding)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    (setq final (apply #'encode-time final)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    (setq final (org-encode-time final)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (setq org-read-date-final-answer ans) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -13591,7 +13593,7 @@ user." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			  (and (boundp 'org-time-was-given) org-time-was-given)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		      (cdr fmts) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		    (car fmts))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	     (txt (format-time-string fmt (apply #'encode-time f))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	     (txt (format-time-string fmt (org-encode-time f))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	     (txt (if org-read-date-inactive (concat "[" (substring txt 1 -1) "]") txt)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	     (txt (concat "=> " txt))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	(when (and org-end-time-was-given 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -13813,7 +13815,7 @@ user." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      ((and wday (not (nth 3 tl))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       ;; Weekday was given, but no day, so pick that day in the week 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       ;; on or after the derived date. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      (setq wday1 (nth 6 (decode-time (encode-time 0 0 0 day month year)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      (setq wday1 (nth 6 (decode-time (org-encode-time 0 0 0 day month year)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (unless (equal wday wday1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	(setq day (+ day (% (- wday wday1 -7) 7)))))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (when (and (boundp 'org-time-was-given) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -13828,7 +13830,7 @@ user." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	  (when (> year 2037) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	    (setq year 2037 org-read-date-analyze-forced-year t))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (condition-case nil 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	  (ignore (encode-time second minute hour day month year)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	  (ignore (org-encode-time second minute hour day month year)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	(error 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 (setq year (nth 5 org-defdecode)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 (setq org-read-date-analyze-forced-year t)))) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -13893,7 +13895,7 @@ Unless KEEPDATE is non-nil, update `org-ans2' to the cursor date." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (eval form t) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (when (and (not keepdate) (calendar-cursor-to-date)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (let* ((date (calendar-cursor-to-date)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	     (time (encode-time 0 0 0 (nth 1 date) (nth 0 date) (nth 2 date)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	     (time (org-encode-time 0 0 0 (nth 1 date) (nth 0 date) (nth 2 date)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	(setq org-ans2 (format-time-string "%Y-%m-%d" time)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (move-overlay org-date-ovl (1- (point)) (1+ (point)) (current-buffer)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (select-window sw) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -13905,7 +13907,7 @@ This is used by `org-read-date' in a temporary keymap for the calendar buffer." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   (interactive) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   (when (calendar-cursor-to-date) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (let* ((date (calendar-cursor-to-date)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	   (time (encode-time 0 0 0 (nth 1 date) (nth 0 date) (nth 2 date)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	   (time (org-encode-time 0 0 0 (nth 1 date) (nth 0 date) (nth 2 date)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (setq org-ans1 (format-time-string "%Y-%m-%d" time))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (when (active-minibuffer-window) (exit-minibuffer)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -13970,7 +13972,7 @@ The command returns the inserted time stamp." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	  time (org-fix-decoded-time t1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	  str (org-add-props 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		  (format-time-string 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		   (substring tf 1 -1) (apply 'encode-time time)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		   (substring tf 1 -1) (org-encode-time time)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		  nil 'mouse-face 'highlight)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (put-text-property beg end 'display str))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -14024,7 +14026,7 @@ This is used by `org-read-date' in a temporary keymap for the calendar buffer." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   (mouse-set-point ev) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   (when (calendar-cursor-to-date) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (let* ((date (calendar-cursor-to-date)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	   (time (encode-time 0 0 0 (nth 1 date) (nth 0 date) (nth 2 date)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	   (time (org-encode-time 0 0 0 (nth 1 date) (nth 0 date) (nth 2 date)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (setq org-ans1 (format-time-string "%Y-%m-%d" time))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (when (active-minibuffer-window) (exit-minibuffer)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -14225,7 +14227,7 @@ days in order to avoid rounding problems." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 (defun org-time-string-to-time (s) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   "Convert timestamp string S into internal time." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  (apply #'encode-time (org-parse-time-string s))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  (org-encode-time (org-parse-time-string s))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 (defun org-time-string-to-seconds (s) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   "Convert a timestamp string S into a number of seconds." 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -14288,7 +14290,7 @@ into a past one.  Any year larger than 99 is returned unchanged." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   "Return the time corresponding to date D. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 D may be an absolute day number, or a calendar-type list (month day year)." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   (when (numberp d) (setq d (calendar-gregorian-from-absolute d))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  (encode-time 0 0 0 (nth 1 d) (car d) (nth 2 d))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  (org-encode-time 0 0 0 (nth 1 d) (car d) (nth 2 d))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 (defvar org-agenda-current-date) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 (defun org-calendar-holiday () 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -14642,14 +14644,15 @@ When SUPPRESS-TMP-DELAY is non-nil, suppress delays like 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	  (setcar (cdr time0) (+ (nth 1 time0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				 (if (> n 0) (- rem) (- dm rem)))))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (setq time 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	    (apply #'encode-time 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		   (or (car time0) 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		   (+ (if (eq timestamp? 'minute) n 0) (nth 1 time0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		   (+ (if (eq timestamp? 'hour) n 0)   (nth 2 time0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		   (+ (if (eq timestamp? 'day) n 0)    (nth 3 time0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		   (+ (if (eq timestamp? 'month) n 0)  (nth 4 time0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		   (+ (if (eq timestamp? 'year) n 0)   (nth 5 time0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		   (nthcdr 6 time0))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	    (org-encode-time 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             (apply #'list 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    (or (car time0) 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    (+ (if (eq timestamp? 'minute) n 0) (nth 1 time0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    (+ (if (eq timestamp? 'hour) n 0)   (nth 2 time0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    (+ (if (eq timestamp? 'day) n 0)    (nth 3 time0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    (+ (if (eq timestamp? 'month) n 0)  (nth 4 time0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    (+ (if (eq timestamp? 'year) n 0)   (nth 5 time0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    (nthcdr 6 time0)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (when (and (memq timestamp? '(hour minute)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		 extra 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		 (string-match "-\\([012][0-9]\\):\\([0-5][0-9]\\)" extra)) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -14667,7 +14670,7 @@ When SUPPRESS-TMP-DELAY is non-nil, suppress delays like 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	  (setcar time0 (or (car time0) 0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	  (setcar (nthcdr 1 time0) (or (nth 1 time0) 0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	  (setcar (nthcdr 2 time0) (or (nth 2 time0) 0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	  (setq time (apply 'encode-time time0)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	  (setq time (org-encode-time time0)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       ;; Insert the new time-stamp, and ensure point stays in the same 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       ;; category as before (i.e. not after the last position in that 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       ;; category). 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -14813,7 +14816,7 @@ If there is already a time stamp at the cursor position, update it." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (org-timestamp-change 0 'calendar) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (let ((cal-date (org-get-date-from-calendar))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (org-insert-time-stamp 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-       (encode-time 0 0 0 (nth 1 cal-date) (car cal-date) (nth 2 cal-date)))))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       (org-encode-time 0 0 0 (nth 1 cal-date) (car cal-date) (nth 2 cal-date)))))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 (defcustom org-image-actual-width t 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   "When non-nil, use the actual width of images when inlining them. 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -18378,14 +18381,14 @@ earliest time on the cursor date that Org treats as that date 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (cond 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      ((eq major-mode 'calendar-mode) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (setq date (calendar-cursor-to-date) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	    defd (encode-time 0 (or mod 0) (or hod org-extend-today-until) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			      (nth 1 date) (nth 0 date) (nth 2 date)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	    defd (org-encode-time 0 (or mod 0) (or hod org-extend-today-until) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                  (nth 1 date) (nth 0 date) (nth 2 date)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      ((eq major-mode 'org-agenda-mode) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (setq day (get-text-property (point) 'day)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       (when day 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	(setq date (calendar-gregorian-from-absolute day) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	      defd (encode-time 0 (or mod 0) (or hod org-extend-today-until) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				(nth 1 date) (nth 0 date) (nth 2 date)))))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	      defd (org-encode-time 0 (or mod 0) (or hod org-extend-today-until) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    (nth 1 date) (nth 0 date) (nth 2 date)))))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (or defd (current-time)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 (defun org-mark-subtree (&optional up) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -19456,12 +19459,14 @@ return an active timestamp." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   "Convert TIMESTAMP object into an Emacs internal time value. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 Use end of date range or time range when END is non-nil. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 Otherwise, use its start." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  (apply #'encode-time 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	 (mapcar 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	  (lambda (prop) (or (org-element-property prop timestamp) 0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	  (if end '(:minute-end :hour-end :day-end :month-end :year-end) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	    '(:minute-start :hour-start :day-start :month-start 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			    :year-start))))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  (org-encode-time 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+   (append '(0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           (mapcar 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (lambda (prop) (or (org-element-property prop timestamp) 0)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (if end '(:minute-end :hour-end :day-end :month-end :year-end) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              '(:minute-start :hour-start :day-start :month-start 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                              :year-start))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           '(nil -1 nil)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 (defun org-timestamp-has-time-p (timestamp) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   "Non-nil when TIMESTAMP has a time specified." 
			 |