emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Russell Adams <RLAdams@AdamsInfoServ.Com>
To: emacs-orgmode@gnu.org
Subject: Re: Timezones revisited
Date: Wed, 1 Feb 2017 17:20:16 +0100	[thread overview]
Message-ID: <20170201162016.GJ7187@volibear.adamsinfoserv.com> (raw)
In-Reply-To: <op.yuzop1lwrns8nc@odin>

On Wed, Feb 01, 2017 at 11:14:15AM -0500, Peter Neilson wrote:
> On Wed, 01 Feb 2017 10:50:24 -0500, Eric Abrahamsen
> Presumably everyone already knows that the timezones are more complicated
> than hoi polloi believe? The offsets are not always integer values of
> hours. For example, Newfoundland time is UTC−03:30. Additional
> complications include daylight saving time and the many historical
> versions of timezones. The definition of UTC can remain pretty much
> constant, but local-timezone time varies as a function of both location
> and calendar date.

Emacs has a timezone conversion function, which I assume pulls from
the tz info database like all the other system commands.

Local time zone should be the system time zone or one defined as a
per-buffer variable.

> Allowing user-defined functions (as simple or as complicated as one
> desires) for translation from UTC might be best.

I don't think we have to build anything from scratch. I think we just
need to take an extra TZ parameter in the input dialog and then run it
through the Emacs tz conversion function to get local time as the
final time we store.


------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

  reply	other threads:[~2017-02-01 16:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-31 23:03 Timezones revisited Russell Adams
2017-02-01 15:50 ` Eric Abrahamsen
2017-02-01 16:05   ` Russell Adams
2017-02-01 16:29     ` Eric Abrahamsen
2017-02-01 16:14   ` Peter Neilson
2017-02-01 16:20     ` Russell Adams [this message]
2017-02-01 17:33       ` Eric Abrahamsen

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=20170201162016.GJ7187@volibear.adamsinfoserv.com \
    --to=rladams@adamsinfoserv.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).