From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: calc-date-format in org-table.el Date: Fri, 5 Sep 2008 07:35:37 +0200 Message-ID: <3D6FF5F2-B955-43A2-8089-C19E8234D0D8@uva.nl> References: <18981.1220565299@alphaville.usa.hp.com> Mime-Version: 1.0 (Apple Message framework v926) Content-Type: multipart/mixed; boundary="===============0881818061==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbVXp-0006Dr-04 for emacs-orgmode@gnu.org; Fri, 05 Sep 2008 03:15:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbVXk-00067K-B0 for emacs-orgmode@gnu.org; Fri, 05 Sep 2008 03:15:48 -0400 Received: from [199.232.76.173] (port=33781 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbVXk-000675-7v for emacs-orgmode@gnu.org; Fri, 05 Sep 2008 03:15:44 -0400 Received: from mx20.gnu.org ([199.232.41.8]:39693) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbVXj-0001QB-Tq for emacs-orgmode@gnu.org; Fri, 05 Sep 2008 03:15:44 -0400 Received: from ug-out-1314.google.com ([66.249.92.168]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KbVXi-0004B8-Ll for emacs-orgmode@gnu.org; Fri, 05 Sep 2008 03:15:42 -0400 Received: by ug-out-1314.google.com with SMTP id a2so24879ugf.17 for ; Fri, 05 Sep 2008 00:15:41 -0700 (PDT) In-Reply-To: <18981.1220565299@alphaville.usa.hp.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org --===============0881818061== Content-Type: multipart/alternative; boundary=Apple-Mail-2--379914118 --Apple-Mail-2--379914118 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Wow, what a stupid, terrible bug. I applied you patch, thanks. - Carsten On Sep 4, 2008, at 11:54 PM, Nick Dokos wrote: > The default calc-date-format in org-table.el uses a 12-hour clock, as > Stephan Schmitt discovered - see > > http://article.gmane.org/gmane.emacs.orgmode/7753 > > > I think it would be preferable to use either a 24-hour clock (or an > am/pm indicator - imo, a 24-hour clock is better). Here is a patch > to make it into a 24-hour clock: > > diff --git a/lisp/org-table.el b/lisp/org-table.el > index 4ba83e9..5d72aab 100644 > --- a/lisp/org-table.el > +++ b/lisp/org-table.el > @@ -191,7 +191,7 @@ t: accept as input and present for editing" > calc-angle-mode deg > calc-prefer-frac nil > calc-symbolic-mode nil > - calc-date-format (YYYY "-" MM "-" DD " " Www (" " HH ":" mm)) > + calc-date-format (YYYY "-" MM "-" DD " " Www (" " hh ":" mm)) > calc-display-working-message t > ) > "List with Calc mode settings for use in calc-eval for table > formulas. > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Apple-Mail-2--379914118 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Wow, what a stupid, terrible = bug.

I applied you patch, = thanks.

- Carsten

On = Sep 4, 2008, at 11:54 PM, Nick Dokos wrote:

The = default calc-date-format in org-table.el uses a 12-hour clock, = as
Stephan Schmitt discovered - see

=        http://article.= gmane.org/gmane.emacs.orgmode/7753


I think it would be = preferable to use either a 24-hour clock (or an
am/pm indicator - = imo, a 24-hour clock is better). Here is a patch
to make it into a = 24-hour clock:

diff --git a/lisp/org-table.el = b/lisp/org-table.el
index 4ba83e9..5d72aab 100644
--- = a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -191,7 +191,7 @@ t: =      accept as input and present for = editing"
    calc-angle-mode =    deg
    calc-prefer-frac =   nil
    calc-symbolic-mode nil
- =    calc-date-format (YYYY "-" MM "-" DD " " Www (" " HH = ":" mm))
+    calc-date-format (YYYY "-" MM "-" DD " " = Www (" " hh ":" mm))
=     calc-display-working-message t
=     )
  "List with Calc mode settings = for use in calc-eval for table = formulas.


_______________________________________________
Em= acs-orgmode mailing list
Remember: use `Reply All' to send replies to = the list.
Emacs-orgmode@gnu.org
http://= lists.gnu.org/mailman/listinfo/emacs-orgmode
<= br>
= --Apple-Mail-2--379914118-- --===============0881818061== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0881818061==--