emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: emacs-orgmode@gnu.org
Subject: calc-date-format in org-table.el
Date: Thu, 04 Sep 2008 17:54:59 -0400	[thread overview]
Message-ID: <18981.1220565299@alphaville.usa.hp.com> (raw)

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.

             reply	other threads:[~2008-09-04 21:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-04 21:54 Nick Dokos [this message]
2008-09-05  5:35 ` calc-date-format in org-table.el Carsten Dominik

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=18981.1220565299@alphaville.usa.hp.com \
    --to=nicholas.dokos@hp.com \
    --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).