emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* calc-date-format in org-table.el
@ 2008-09-04 21:54 Nick Dokos
  2008-09-05  5:35 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Nick Dokos @ 2008-09-04 21:54 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-05  7:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-04 21:54 calc-date-format in org-table.el Nick Dokos
2008-09-05  5:35 ` Carsten Dominik

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