From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oFoNG8jaxGMJBgEAbAwnHQ (envelope-from ) for ; Mon, 16 Jan 2023 06:04:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +LEDG8jaxGMqfwEA9RJhRA (envelope-from ) for ; Mon, 16 Jan 2023 06:04:08 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2EAB027D6 for ; Mon, 16 Jan 2023 06:04:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHHeX-00077e-FY; Mon, 16 Jan 2023 00:03:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHHdO-0006zM-EW for emacs-orgmode@gnu.org; Mon, 16 Jan 2023 00:02:15 -0500 Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHHdL-00031G-0X for emacs-orgmode@gnu.org; Mon, 16 Jan 2023 00:02:13 -0500 Received: by mail-yb1-xb2e.google.com with SMTP id v19so23112095ybv.1 for ; Sun, 15 Jan 2023 21:02:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2qQXRx7Rwh9JqNjfn6TPsjsiX3ANT9grHr/2/gINzu0=; b=Acpxfusb7CPLwFlLhXG5AaHOBW+TyTRVizFk1Etuke9yvBZ500fxAp0MrBv7gmNCg/ WSC0FPcJYWd9MBTcGUOKewbvZnRKDmGR4W1mC1/7R3GPqupE7F2pI57uclETY3tPdKDb bM8YRExp9+2GBERsmPTp9pTpWDbaJmyi5n7qRlgBnR9qjYVuwCC8QstIXvQZZ9oQI33W wIASeeyf+nknBiYbGrOKgAQK3sHe/bYW3VYSPWCd6kWbqdJ9JH1oQC4PyPGJgsDwrOaj xTxWViKpzew/GS/G0pbKx4mynmrMuxRJrMwEtmcs2hJr9hLuVqXwZLAa2noNDsmC71FN PjbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2qQXRx7Rwh9JqNjfn6TPsjsiX3ANT9grHr/2/gINzu0=; b=V+J/pvFzeCL9EAsiwhLt2D7tfSfRf/4Xfyx76tXvR5AKhvak9o4EeVP50xOfufLPCk X3FUb9IKGwmGWxtiY7rGv4r/T5SUiiqR9pq095HK8EDXB2SsAfNvE/Yt0zDV56VmvlO/ kTh10iCpUOLVsNWmsTWaCxeCJL9EQv7ElF7suniGwikzQJobVf6P0jF+X4+vweIhE5NM cLR+N0gVGVafdh5xOnwZvEGxIWmMwhNzMcxtW7ycZOhABoIKLBO1yloDZQWIicX5y8Y/ Va5NUfaOEHWRk+qt2WiwaSl1zVzQgR50ZqXJM8jt/LM5woE0eAjTwXy0shgpB7rrWXjM Xeyg== X-Gm-Message-State: AFqh2kpWCNORFzXk6oPz7hB509veqpnp2BosqoYKuTO/TPWk/fAFiNLc BA3t8I7n2g1MhAMiWMJNNAzs81DTB6XuLx361rmHf+dXAaI= X-Google-Smtp-Source: AMrXdXsiM9/K1g7uaS93UcsgKi9bzWRbG0FDSVvt7QvwjwDi0t+d5GrJM4sLHDAeypiv9ayX+zBcp0SK8dAbuWy0lIY= X-Received: by 2002:a25:c053:0:b0:7cd:77e2:b7e5 with SMTP id c80-20020a25c053000000b007cd77e2b7e5mr1428837ybf.392.1673845326509; Sun, 15 Jan 2023 21:02:06 -0800 (PST) MIME-Version: 1.0 References: <86zgamtv6o.fsf@gmail.com> <87tu0t1i0c.fsf@localhost> In-Reply-To: <87tu0t1i0c.fsf@localhost> From: Tom Gillespie Date: Mon, 16 Jan 2023 00:01:54 -0500 Message-ID: Subject: Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda To: emacs-orgmode@gnu.org Cc: Ihor Radchenko Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::b2e; envelope-from=tgbugs@gmail.com; helo=mail-yb1-xb2e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Acpxfusb; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673845448; a=rsa-sha256; cv=none; b=WSRzbLATKeqZyxf1X1T4x3BRUOTSH+zDTEUhVaufxiulRx1ppeNr4hKy1jGL2lPf4pxm73 Cr4ggEQy8MZgBN6ra0FUp/3hyiz7Bmvf39WGTI4O4It6VdcMygDkkDelqZYJraG5itRxkP CS8plDATgBjZWzPYu9myag0BrD/xYT/mENCy/vFEEnRAUmtOhuYnZlLfYF1hyakUhqNPG6 36IkscyUa0rREQEr88QG2oRXTFVqzsp4BSM/ZyqiqeLQ3ygB5DgFcZ+IRF5y4IEbNAJzqY FoJmi79fLWiYbsekAEupgVMzBwdJu3yFJmTV2tyQsYhP7x3U72UtA80d8svcww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673845448; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=2qQXRx7Rwh9JqNjfn6TPsjsiX3ANT9grHr/2/gINzu0=; b=Jo69oMteHVQ6dz/gYT0gZNaIFKwVzF1pfBDSGIKYydsK7Rr8IYBC6nI67mFkVOX+c2iOSR yEkOa0T9ElduT2G+l7OMqBGO7C0c5iSuhQTwlnbDvpfD52FPF8ak4nWoraBVDw/K/A30JP I+fwU4wHDppvdC6rKnQb/3ZwHsAIX/HmTK2nfTjEJFBFetttMn9cBurKg4wxez9Mf4i63K EuybLOneobktU0MzqyQx5Wog/R0lM39qh4f6ntkD0JuZM6FLQh70l1K3eygVFISQX4d+F8 0CBtO30Rwblq/VTR5XZGATUFn63NOq6++y8C4nYulW6m5qOr6Ucs7oFxin7cPA== X-Migadu-Queue-Id: 2EAB027D6 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Acpxfusb; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com X-Migadu-Spam-Score: -9.77 X-Spam-Score: -9.77 X-TUID: 3el8uI5ObQAW > In anticipation to add time zones in future, I have added the following > to the Org timestamp spec (see > https://orgmode.org/worg/org-syntax.html#Timestamps): > > DATE TIME REPEATER-OR-DELAY > > TIME (optional) > An instance of the pattern H:MMREST where H represents a one to two digit number (and can start with 0), and M represents a single digit. REST can contain anything but \n or closing bracket. > > Note that REST imply that almost arbitrary suffix can be in TIME without > braking the existing Org timestamp parsing code. I'm not sure how I feel about the REST in the grammar, I think it is a reasonable approach but need to double check. I'm worried that there can be some nasty interactions with REPEATER-OR-DELAY syntax, but that may not actually be an issue. I will note that this doesn't address the issue of syntax for historical and future dates. For historical dates those almost always require significant additional metadata to compensate for things like the julian/gregorian calendar switchover etc. for future dates we may want to go ahead and specify something beyond YYYY-. I'm less concerned about the rest of the issues beyond the fact that adding syntactic support for timezones seems to have opened up countless usability and bad assumption issues that have been mentioned elsewhere in the thread. So, I think the syntax may be ok, but as written I think there can be quite nasty interactions with REPEATER-OR-DELAY (not to mention what happens if a delay tries to track across a change in timezones). Best, Tom