From: Michael Heerdegen <michael_heerdegen@web.de>
To: emacs-orgmode@gnu.org
Subject: Re: Plotting a table of date+time pairs
Date: Wed, 04 Dec 2024 14:47:47 +0100 [thread overview]
Message-ID: <87ikrzpnjw.fsf@web.de> (raw)
In-Reply-To: <87frn34qfr.fsf@ucl.ac.uk> (Eric Fraga's message of "Wed, 4 Dec 2024 11:51:05 +0000")
"Fraga, Eric" <e.fraga@ucl.ac.uk> writes:
> > But the real problem is that the org table export mechanism thinks that
> > the time field doesn't look like a numerical field, so it wraps every
> > such field in quotes, and the exported data file will look like
> >
> > | 2024-09-18 "11:40 CEST"
> > | 2024-09-19 "11:27 CEST"
>
> Is it possible to specify a format to timecolumn that includes both the
> quotes and the time zone? I'm thinking something along the lines of
>
> ... timecolumn(2, "\"%H:%M %Z\"")
>
> (untested)
Tested!
The escaped quotes seem to be recognized literally as expected. This
saves me from my org hack!
Unfortunately %Z is ignored - I think it's only significant for output:
| [...] However this default can be replaced when reading any
| particular file or column of input using the timecolumn function in
| the corresponding using specifier.
|
| The conversion to and from seconds assumes Universal Time (which is
| the same as Greenwich Standard Time). There is no provision for
| changing the time zone or for daylight savings. If all your data
| refer to the same time zone (and are all either daylight or standard)
| you don’t need to worry about these things. But if the absolute time
| is crucial for your application, you’ll need to convert to UT
| yourself.
I thought maybe %z, which is meant to support a time zone in [+/-]mm:hh
format, could work, but parsing completely fails when using it. Maybe
it's not implemented for input, not even as "ignore that part".
But that's not a big deal, I'm happy with the version that works. You
were a great help, Eric.
Thanks again,
Michael.
next prev parent reply other threads:[~2024-12-04 13:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-28 1:21 Plotting a table of date+time pairs Michael Heerdegen
2024-11-28 9:27 ` Fraga, Eric
2024-11-28 23:17 ` Michael Heerdegen
2024-11-29 9:30 ` Fraga, Eric
2024-11-30 6:17 ` Michael Heerdegen
2024-11-30 6:48 ` Michael Heerdegen
2024-12-02 12:21 ` Fraga, Eric
2024-12-04 10:50 ` Michael Heerdegen
2024-12-04 11:51 ` Fraga, Eric
2024-12-04 13:47 ` Michael Heerdegen [this message]
2024-12-04 14:02 ` Fraga, Eric
2024-11-29 15:21 ` Max Nikulin
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=87ikrzpnjw.fsf@web.de \
--to=michael_heerdegen@web.de \
--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).