From mboxrd@z Thu Jan 1 00:00:00 1970 From: edgar@openmail.cc Subject: taskjuggler subtract scheduled and deadline Date: Wed, 27 Dec 2017 02:52:46 +0000 Message-ID: <06f48552a0bad78bda48e9aa3f9a3f30@openmail.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eU1qA-0001MX-Ih for emacs-orgmode@gnu.org; Tue, 26 Dec 2017 21:53:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eU1q7-0005eG-HJ for emacs-orgmode@gnu.org; Tue, 26 Dec 2017 21:53:10 -0500 Received: from onethreetwo.vfemail.net ([199.16.11.132]:43385 helo=vfemail.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eU1q7-0005YL-9m for emacs-orgmode@gnu.org; Tue, 26 Dec 2017 21:53:07 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hello, I am trying this: #+BEGIN_SRC org ,* TODO Pay the rent :taskjuggler_project: SCHEDULED: <2017-12-29 Fri 09:00> DEADLINE: <2017-12-29 Fri 11:00> #+END_SRC which gives me this: #+BEGIN_EXAMPLE repeat.tjp:13: Error: The end date (2017-12-29-00:00-+0000) must be after the start date (2017-12-29-00:00-+0000). #+END_EXAMPLE I tried modifying ox-taskjuggler.el: #+BEGIN_SRC diff ,*** org/ox-taskjuggler.el 2017-12-26 16:39:52.633050180 -0700 --- my/ox-taskjuggler.el 2017-12-26 19:42:17.921208465 -0700 ,*************** ,*** 478,484 **** --- 478,490 ---- doesn't have any start date defined." (let ((scheduled (org-element-property :scheduled item))) (or + ;; How do I compile a regex to avoid locale day names?: + ;; "%Y-%02m-%02d [[:alpha:][:space:]]* %[RT]" (and scheduled (org-timestamp-format scheduled "%Y-%02m-%02d")) + (and scheduled (org-timestamp-format scheduled "%Y-%02m-%02d %R")) + (and scheduled (org-timestamp-format scheduled "%Y-%02m-%02d %a %R")) + (and scheduled (org-timestamp-format scheduled "%Y-%02m-%02d %T")) + (and scheduled (org-timestamp-format scheduled "%Y-%02m-%02d %a %T")) (and (memq 'start org-taskjuggler-valid-task-attributes) (org-element-property :START item))))) ,*************** ,*** 487,493 **** ITEM is a headline. Return value is a string or nil if ITEM doesn't have any end date defined." (let ((deadline (org-element-property :deadline item))) ! (and deadline (org-timestamp-format deadline "%Y-%02m-%02d")))) --- 493,506 ---- ITEM is a headline. Return value is a string or nil if ITEM doesn't have any end date defined." (let ((deadline (org-element-property :deadline item))) ! ;; How do I compile a regex to avoid locale day names?: ! ;; "%Y-%02m-%02d [[:alpha:][:space:]]* %[RT]" ! (or ! (and deadline (org-timestamp-format deadline "%Y-%02m-%02d")) ! (and deadline (org-timestamp-format deadline "%Y-%02m-%02d %R")) ! (and deadline (org-timestamp-format deadline "%Y-%02m-%02d %a %R")) ! (and deadline (org-timestamp-format deadline "%Y-%02m-%02d %T")) ! (and deadline (org-timestamp-format deadline "%Y-%02m-%02d %a %T"))))) #+END_SRC but I got the same error. Is there a way to set starting and ending times with a resolution of hours or minutes to be exported with taskjuggler? Thanks! ------------------------------------------------- ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!