From: "Alan E. Davis" <email@example.com>
To: Tim Cross <firstname.lastname@example.org>
Cc: org-mode <email@example.com>
Subject: Re: org-table change time from UTC to other timezones
Date: Thu, 10 Dec 2020 00:10:43 -0800 [thread overview]
Message-ID: <CAF-1L2QKXTN9EQVkXKOdV3uJi2nzDY-fTB5svLfb1j7-oZ60wg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3397 bytes --]
I am close to throwing in the towel.
Thank you for the suggestion. Several problems have been encountered. I
wonder whether I understand this tool at all. If I subtract 10:00 from
08:46, the answer given is -01:14. I used #+TBLFM: $6=$4+$5;U, as follows
(please forgive the formatting):
| Phenom | Date | DoW | UTC | Hrs | ChST | |
| ApoG | 22 | Fr | 06:44 | -10:00 | -03:16 | |
When I add 10:00, I think the values are sensible: 21:45 + 10:00 = 31:45.
Another problem was in trying to use an inactive org timestamp. It was not
straightforward to add or subtract N hours (say, 08:00).
This it a thornier problem than I had envisioned, anyway, because in locale
with time zones, the conversion factor will change at some point DURING the
Perhaps there is a calc procedure to convert time zones that will take into
account the system's knowledge of the timezones as well as changes to/from
On Wed, Dec 9, 2020 at 3:40 AM Tim Cross <firstname.lastname@example.org> wrote:
> Alan E. Davis <email@example.com> writes:
> > I have been pleased to learn that I can add / subtract hours in org-table
> > to shift time zones. I am making tables of lunar/solar parameters
> > relevant to tides. Org-table is a convenient way to enter data in a
> > tabular format that can be printed via LaTeX. So each year, for several
> > time zones, I enter these times by hand.
> > It's very, very easy, I have learned, to collect all of these times (at
> > most, maybe 12 per month) for UTC, and add or subtract to generate a
> > of times for a new time zone. Very Slick!
> > Except that when I add, for example. 09:00 to 23:33, I guess it is pretty
> > obvious what is going to happen: it would be the same day, but at 32:33
> > I have tripped up on trying to test for whether the sum is greater than
> > equal to 24:00, and then doing something interesting with it. It's
> > actually pretty easy to go through all the months and find the
> > and make manual changes. But, as I usually have done, I would rather
> > a few hours coming up with some programmatic method for making this work
> > automatically!
> > The other problem is the change of the day. I suppose I could use 0, 1,
> > 2... for Sunday, Monday, Tuesday... (I am living in the United States).
> > Has someone solved this problem?
> Org tables support formulas which use the Emacs 'calc' program. Calc has
> pretty good support for adding, subtracting, multiplying and otherwise
> manipulating dates and times (this is how the org clocktable works). It
> should be pretty straight forward to have a column of date + time
> values, a time offset representing a timezone and a 3rd column which is
> the new date/time after applying the offset. Have a look at the secton
> in the org manual on table formulas and the calc manual in info.
> Tim Cross
"This ignorance about the limits of the earth's ability to absorb
pollutants should be reason enough for caution in the release
of polluting substances."
---Meadows et al. 1972. Limits to Growth
[-- Attachment #2: Type: text/html, Size: 4683 bytes --]
next prev parent reply other threads:[~2020-12-10 8:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-09 10:20 org-table change time from UTC to other timezones Alan E. Davis
2020-12-09 11:34 ` Tim Cross
2020-12-10 8:10 ` Alan E. Davis [this message]
2020-12-10 19:01 ` Tim Cross
2020-12-11 0:12 ` Alan E. Davis
2020-12-11 15:40 ` Maxim Nikulin
2020-12-11 22:44 ` Alan E. Davis
2020-12-12 16:04 ` Maxim Nikulin
2020-12-12 22:52 ` Tim Cross
2020-12-13 3:14 ` Alan E. Davis
2020-12-13 17:03 ` Maxim Nikulin
2020-12-14 2:29 ` Alan E. Davis
2020-12-12 3:31 ` Jean Louis
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:
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* 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
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).