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

* Re: calc-date-format in org-table.el
  2008-09-04 21:54 calc-date-format in org-table.el Nick Dokos
@ 2008-09-05  5:35 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-09-05  5:35 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1248 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 1912 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

^ permalink raw reply	[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).