Re: Idea for handling timezones

2021-04-23 Thread tomas
On Fri, Apr 23, 2021 at 09:45:14AM +0800, Shironeko wrote: > Hi all, > > I originally thought having the timezone in the header of the file would make > things simpler, since it meant all the timestamp would be in the same > timezone, > rather than potentially different ones. But it seems that

Re: Idea for handling timezones

2021-04-22 Thread Shironeko
Hi all, I originally thought having the timezone in the header of the file would make things simpler, since it meant all the timestamp would be in the same timezone, rather than potentially different ones. But it seems that that might not be inline with how others use their org files. org

Re: Idea for handling timezones

2021-04-04 Thread Maxim Nikulin
The notes below are quite general and unrelated to particular message. On 04/04/2021 07:51, Tom Gillespie wrote: followed by a space and then the repeat or delay for example [+1-01-01 10:11:00,992315771-04:00 Sat] or [-480-08-20 05:00+01:00] or more temporally local [2021-03-03 17:43-07:00

Re: Idea for handling timezones

2021-04-03 Thread Tom Gillespie
Time zones are tricky, but there are some requirements that make it possible to rule out many apparent solutions because they violate some critical invariant. For example. Timezone cannot be scoped to the file. This is because many users (myself included) have a single org file that is used in and

Re: Idea for handling timezones

2021-04-03 Thread Tim Cross
Greg Minshall writes: > Russell, > >> I would not suggest using UTC. I believe one of the reasons timestamps >> didn't include TZ information was to keep them short and human >> legible. Solutions with overlays to change a timestamp reduce the >> usefulness of the plain text reading of Org

Re: Idea for handling timezones

2021-04-03 Thread Samuel Wales
the suggestion to change all your tses to utc was not a general suggestion for all org users or a change to org. for op only. but the point about grep and such then breaking is a good one. it is possibly not a useful workaround for the op. On 4/3/21, Greg Minshall wrote: > Russell, > >> I

Re: Idea for handling timezones

2021-04-03 Thread Greg Minshall
Russell, > I would not suggest using UTC. I believe one of the reasons timestamps > didn't include TZ information was to keep them short and human > legible. Solutions with overlays to change a timestamp reduce the > usefulness of the plain text reading of Org (ie: less, grep, > etc). Storing

Re: Idea for handling timezones

2021-04-03 Thread Russell Adams
On Sat, Apr 03, 2021 at 02:23:34PM +0300, Greg Minshall wrote: > > #+TIMEZONE: America/Toronto > > > > at the start of their org file, and they moved to Shanghai, all the > > timestamp in > > the org file is converted using something equivalent to I think what you're saying here is that

Re: Idea for handling timezones

2021-04-03 Thread Shironeko
The reason there is such a database is precisely that it is meant to change, leap seconds are irregular and other laws change all the time (perhaps DST gets removed (please)). Setting all timestamps to UTC is the ideal solution for sure (perhaps as an option) and other things that deal with org

Re: Idea for handling timezones

2021-04-03 Thread Shironeko
The only ambiguous timestamp is the hour when exiting DST (dialing back), and that time is usually set to when there is not much going on (like midnight). all other time do not need to specify whether its DST or not, which fits in with the current timestamp format. signature.asc Description:

Re: Idea for handling timezones

2021-04-03 Thread tomas
On Sat, Apr 03, 2021 at 05:26:43PM +0800, Shironeko wrote: > tz database and tools using it like the date(1) command can convert between > local times taking into account all the difference like daylight savings time. > An example below, Toronto observes daylight savings whereas Shanghai does not:

Re: Idea for handling timezones

2021-04-03 Thread Greg Minshall
hi, Shiro, > With this, say the user have > > #+TIMEZONE: America/Toronto > > at the start of their org file, and they moved to Shanghai, all the timestamp > in > the org file is converted using something equivalent to > > $ TZ=Asia/Shanghai date --date='TZ="America/Toronto" '"$TIMESTAMP" >

Re: Idea for handling timezones

2021-04-03 Thread Shironeko
tz database and tools using it like the date(1) command can convert between local times taking into account all the difference like daylight savings time. An example below, Toronto observes daylight savings whereas Shanghai does not: $ TZ=Asia/Shanghai date --date='TZ="America/Toronto" 2021-11-07

Re: Idea for handling timezones

2021-04-03 Thread tomas
On Sat, Apr 03, 2021 at 08:03:18AM +, shironeko wrote: > see https://en.m.wikipedia.org/wiki/Tz_database That's where I looked at (OK, without the "m" in the URL ;-) But I still don't understand what you are up to, so it might be we are talking past each other. What's described there is a

Re: Idea for handling timezones

2021-04-03 Thread shironeko
see https://en.m.wikipedia.org/wiki/Tz_database

Re: Idea for handling timezones

2021-04-03 Thread tomas
On Sat, Apr 03, 2021 at 08:36:06AM +0800, Shironeko wrote: > On Fri, 2021-04-02 at 13:34 +0200, to...@tuxteam.de wrote: > > On Thu, Apr 01, 2021 at 07:40:47AM +, shironeko wrote: > > > > Hm. Just a mumbling from the peanut gallery: isn't the timezone a property > > of the timestamp itself? >

Re: Idea for handling timezones

2021-04-02 Thread Samuel Wales
what i proposed is this. which uses text properties. it might not suit your needs, but might be a workaround. at least it is a brainstorm. suitable for wrapping fish. 1] convert all your tses to utc [exercise for the reader] 2] make org's idea of time be utc [there /might/ be code] 3] make

Re: Idea for handling timezones

2021-04-02 Thread Shironeko
On Sat, 2021-04-03 at 10:37 +1100, Tim Cross wrote: > > 1. Timzone alone is not sufficient. Offsets from UTC change due to > daylight savings times etc. > > 2. You can easily have timestamps from different timezones in the same > org file > > 3. Storing timestamps in local time is problematic

Re: Idea for handling timezones

2021-04-02 Thread Shironeko
On Fri, 2021-04-02 at 13:34 +0200, to...@tuxteam.de wrote: > On Thu, Apr 01, 2021 at 07:40:47AM +, shironeko wrote: > > Hm. Just a mumbling from the peanut gallery: isn't the timezone a property > of the timestamp itself? > > Specifying the timezone for the whole file is progress, but

Re: Idea for handling timezones

2021-04-02 Thread Samuel Wales
org has capability of overlaying [or similar] tses with user-defined something or other. for locale type purposes. perhaps, in principle, all tses for users who need tz could be in utc or similar, and such overlays could be used to localize on the fly? On 4/2/21, Tim Cross wrote: > > shironeko

Re: Idea for handling timezones

2021-04-02 Thread Tim Cross
shironeko writes: > Hi everyone, > > I, like many others on this list, have to move between timezones quite > frequently. As I gathered from the archive, it seems the main complexity in > supporting timezones is the difficulty revolving the change of timestamp > format. > So I have an idea,

Re: Idea for handling timezones

2021-04-02 Thread tomas
On Thu, Apr 01, 2021 at 07:40:47AM +, shironeko wrote: > Hi everyone, > > I, like many others on this list, have to move between timezones quite > frequently. As I gathered from the archive, it seems the main complexity in > supporting timezones is the difficulty revolving the change of

Idea for handling timezones

2021-04-02 Thread shironeko
Hi everyone, I, like many others on this list, have to move between timezones quite frequently. As I gathered from the archive, it seems the main complexity in supporting timezones is the difficulty revolving the change of timestamp format. So I have an idea, suppose we add a new keyword,

Idea for handling timezones

2021-04-02 Thread Shironeko
Hi everyone, I, like many others on this list, have to move between timezones quite frequently. As I gathered from the archive, it seems the main complexity in supporting timezones is the difficulty revolving the change of timestamp format. So I have an idea, suppose we add a new keyword,