From mboxrd@z Thu Jan 1 00:00:00 1970 From: Trevor Murphy Subject: [PATCH v2] Timestamps: Handle sub-10-min ranges when updating timestamps Date: Thu, 8 Aug 2013 16:30:37 -0700 Message-ID: <1376004637-13354-1-git-send-email-trevor.m.murphy@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7ZfT-0007mj-Uc for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 19:31:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7ZfG-0005lj-Bz for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 19:30:55 -0400 Received: from mail-pb0-x22b.google.com ([2607:f8b0:400e:c01::22b]:49144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7ZfG-0005lS-0A for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 19:30:42 -0400 Received: by mail-pb0-f43.google.com with SMTP id md4so2926457pbc.2 for ; Thu, 08 Aug 2013 16:30:40 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: n.goaziou@gmail.com * lisp/org.el (org-get-compact-tod): Always pad minutes to two places. TINYCHANGE --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index b1a2fa8..e13c2b8 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -16077,7 +16077,7 @@ with the current time without prompting the user." (setq dh (- h2 h1) dm (- m2 m1)) (if (< dm 0) (setq dm (+ dm 60) dh (1- dh))) (concat t1 "+" (number-to-string dh) - (if (/= 0 dm) (concat ":" (number-to-string dm)))))))) + (and (/= 0 dm) (format ":%02d" dm))))))) (defun org-time-stamp-inactive (&optional arg) "Insert an inactive time stamp. -- 1.8.3.4