From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qMJSAdUs2WMWLQEAbAwnHQ (envelope-from ) for ; Tue, 31 Jan 2023 15:59:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id AF4UAdUs2WMCiAAAauVa8A (envelope-from ) for ; Tue, 31 Jan 2023 15:59:33 +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 B6D3036F47 for ; Tue, 31 Jan 2023 15:59:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMql4-0002IQ-DU; Tue, 31 Jan 2023 08:33:10 -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 1pMql2-0002HO-Vl for emacs-orgmode@gnu.org; Tue, 31 Jan 2023 08:33:09 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMqkx-0003Q7-FV for emacs-orgmode@gnu.org; Tue, 31 Jan 2023 08:33:07 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8D2AB240752 for ; Tue, 31 Jan 2023 14:32:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1675171974; bh=Qojct7kF6p5+J5oz/JU6wv1LjYlY5bovb+xQ0h9FcmM=; h=From:To:Cc:Subject:Date:From; b=A+MUmHjJ80lLyLt+R9fTSEWXT+OOCpaWHffgWXb30lI6TfJVal76B28+qj33jCFpW MPvJ2MAkrigKgXUPgE46dSXBzFu6gXdqmGPSWyf94XdprTmM/b3yMYqxNnMum2VDax qtdGFMyAKpoKpd0Y/dtpvA6DAF2YThZMBTGMiTyM+1sjWp+FQIDlvzEqwQxtIOS9bd MOghUhDN+t095tndUIc6J+TriuAJqQka9xwpS96uoQI6e3s3WaELyxSEdGyvzXlwaq pGEOOQaEwG1OqktgIqJLnu5XEQ/M2g7CfgDgs9tE7aqdN9znaRrhLnY+GsQE2q3znj mc0+sG3RthVPw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4P5mFL6ydvz9rxD; Tue, 31 Jan 2023 14:32:38 +0100 (CET) From: Ihor Radchenko To: Daryl Manning Cc: emacs-orgmode@gnu.org Subject: Re: [POLL] Proposed syntax for timestamps with time zone info (was: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda) In-Reply-To: References: <87fsc88aq9.fsf@localhost> <63c7dd3d.170a0220.6b4d6.f84f@mx.google.com> <877cxk6oeu.fsf@localhost> <63c86454.170a0220.80970.652d@mx.google.com> <63c8f5a6.170a0220.ea8cf.7f96@mx.google.com> <63c9b654.170a0220.d82d2.4254@mx.google.com> <87mt6e86sr.fsf@tsdye.online> <63c9d976.620a0220.a7d40.113b@mx.google.com> <87tu0mjb24.fsf@tsdye.online> <63ca1283.170a0220.5bc81.0fdd@mx.google.com> <87pmb9k8oi.fsf@tsdye.online> <3035CDD5-41DD-4516-9E4E-9E0DF16BE2E0@gmail.com> <87lelo8c9r.fsf@localhost> <2150768.1675077958@archlinux> <87tu063ox2.fsf@localhost> <87r0va3mgo.fsf@localhost> Date: Tue, 31 Jan 2023 13:33:15 +0000 Message-ID: <87leli3k2s.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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-Seal: i=1; s=key1; d=yhetil.org; t=1675177172; a=rsa-sha256; cv=none; b=gm6UbtN7ToyvDMhIz2lRAS0wUBRFtH69XNjU7OtS+XudQP1JuFbTBpeF7JYZ1Qh7tVAYj4 wplHN9kJVLAitPryakkuOP6Dcltx1/qGwAmx5w+bHaPUPrNqbE5fHzXuUFutLhgiZ2XwDX q4n7XLTQc7CGi8VqEJ1mbvVmrTdz8ee2dXB0AH39u/YSBQth/+pBloGlFj9LhgZHcdjzM4 OrbyUCD4/xEMR8fzQfh5UrjXibbJRF5/sSO1A3O4oKvF/kFZQwTAvIGCrZ/lLFn8iu0MqK VA6jcZ5UOVTjLYyLNuoZmHkp4MaqvThMW6tqeFV3tIhXe/v8WOag/SfbqvSJfw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=A+MUmHjJ; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675177172; 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=vvLksQ8UhFCKk5aB8XglQ3OxvRqCKRq3Uv8NcM3NMsg=; b=mJbVRW71thTqdypuQQ3ujGGpCCOfofPShaRCTAcoShwHcAF9M1Yz0kjZ5RWSeXJHSomQzn lnvza1lFp7Lh2CVKIEucXokA9WEsRAJnBM0UAQTdek8zXz3KsFknS9dlbtUXre4x9pBcoD CpmzXy3eK2yLGvs5qMLl7LdHDQSQaGtzfhxDydkovJL3cFZoK+joz9hSun5Rn86Yw9Cf7t Agurzs3arvyT4vwQGQ1rPVGFRtGa/dcUvA9na67paQ3KWVgLdtISGPVSUpmf1gejEz9gQG /x4WS7viFOk7uzfSfazX4lJT25Jh8vyHK2JMH09LhBcxpmUYwTpPRvpE5Sgnfg== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=A+MUmHjJ; 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=posteo.net X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.54 X-Spam-Score: -4.54 X-Migadu-Queue-Id: B6D3036F47 X-TUID: 9fWlQz//K2JP [ adding Org ML back to CC ] Daryl Manning writes: > OMG it would be amazing if (simply) going <2023-01-31 10:00 @EST> or when > daylight savings time hits <2023-01-31 10:00 @EDT> worked. > > would be *super* happy with that as a user who spends a lot of time dealing > with other time zones. =] You can play around with the following (format-time-string "%Y-%m-%d %a %H:%M" (current-time) "EST") (format-time-string "%Y-%m-%d %a %H:%M" (current-time) "Asia/Singapore") (format-time-string "%Y-%m-%d %a %H:%M" (current-time) "EDT") ; => not correct (format-time-string "%Y-%m-%d %a %H:%M" (current-time) "EDT5") ;=> correct, because daylight saving is not active now "EDT" is not supported (at least, on my system). AFAIK, the correct TZ format is (format-time-string "%Y-%m-%d %a %H:%M" (current-time) "EST5EDT") (Side note: we should probably detect unsupported time zone names and issue a warning) Note that Emacs provides `timezone-zone-to-minute', but, as you see in the docstring below, EST must not be used because it may be ambiguous outside USA. (That's why POSIX TZ format demands the offset part in addition to time zone abbreviation) `current-time-zone' is also not helpful here: (current-time-zone nil "EDT") ;=> (0 "EDT") == UTC?? (current-time-zone nil "EST") ;=> (-18000 "EST") (current-time-zone nil "EST5EDT") ;=> (-18000 "EST") (defvar timezone-world-timezones '(("PST" . -800) ("PDT" . -700) ("MST" . -700) ("MDT" . -600) ("CST" . -600) ("CDT" . -500) ("EST" . -500) ("EDT" . -400) ("AST" . -400) ;by ("NST" . -330) ;by ("UT" . +000) ("GMT" . +000) ("BST" . +100) ("MET" . +100) ("EET" . +200) ("JST" . +900) ("GMT+1" . +100) ("GMT+2" . +200) ("GMT+3" . +300) ("GMT+4" . +400) ("GMT+5" . +500) ("GMT+6" . +600) ("GMT+7" . +700) ("GMT+8" . +800) ("GMT+9" . +900) ("GMT+10" . +1000) ("GMT+11" . +1100) ("GMT+12" . +1200) ("GMT+13" . +1300) ("GMT-1" . -100) ("GMT-2" . -200) ("GMT-3" . -300) ("GMT-4" . -400) ("GMT-5" . -500) ("GMT-6" . -600) ("GMT-7" . -700) ("GMT-8" . -800) ("GMT-9" . -900) ("GMT-10" . -1000) ("GMT-11" . -1100) ("GMT-12" . -1200)) "Time differentials of timezone from GMT in +-HHMM form. This list is obsolescent, and is present only for backwards compatibility, because time zone names are ambiguous in practice. Use `current-time-zone' instead.") -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at