emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: edgar@openmail.cc
To: emacs-orgmode@gnu.org
Subject: taskjuggler subtract scheduled and deadline
Date: Wed, 27 Dec 2017 02:52:46 +0000	[thread overview]
Message-ID: <06f48552a0bad78bda48e9aa3f9a3f30@openmail.cc> (raw)

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"))))


     \f
   --- 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")))))


     \f

#+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!  

             reply	other threads:[~2017-12-27  2:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-27  2:52 edgar [this message]
2018-04-26 23:34 ` taskjuggler subtract scheduled and deadline Bastien
2018-05-15  8:44   ` Christian Egli
  -- strict thread matches above, loose matches on Subject: below --
2018-05-16 19:33 edgar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=06f48552a0bad78bda48e9aa3f9a3f30@openmail.cc \
    --to=edgar@openmail.cc \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).