From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4NwRIhFjaGD1YAEAgWs5BA (envelope-from ) for ; Sat, 03 Apr 2021 14:44:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oMWHHBFjaGBIdQAAB5/wlQ (envelope-from ) for ; Sat, 03 Apr 2021 12:44:01 +0000 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 99D1A2849C for ; Sat, 3 Apr 2021 14:44:00 +0200 (CEST) Received: from localhost ([::1]:45328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSfd8-000314-2X for larch@yhetil.org; Sat, 03 Apr 2021 08:43:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSfcd-00030w-N8 for emacs-orgmode@gnu.org; Sat, 03 Apr 2021 08:43:27 -0400 Received: from mail.tuxteam.de ([5.199.139.25]:40322) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1lSfcb-0004fn-7h for emacs-orgmode@gnu.org; Sat, 03 Apr 2021 08:43:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=bsxbsKmWEA6+Thrq95uwfAulNUFp8SyQ9n2YAAwbDLM=; b=O5yB+oe7fz+QBFKB1FfSCHbvGKZC1QAkSA0i0rgglon2m8u9zNxpRVfVAtY8kT1MDSV4ys+r0oEKpEXc1N22rbYSHBkYcohs7nvb+d9/g845COhAf3qJdBes1ziG868aSsBeLW36FmspUGlc1gToPMy1YktZIW3+HVpo6OM6YGIQbiVbdLw2SeZ13zj5siuKR1toxrcUh2sSZQhq5It9estj4R2GhnZYyxUujNfDTh7hD82yF8Y3GVpRqxQMIdGjrTMqnTumqgeRCpi7JYYpq5ZdILMmWSuyRS525AQ+RghkL1OY2zdZ9UutdU7lTf2pgBoZhvbaCHCRJwatRZzOyA==; Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1lSfcS-0008PQ-6r; Sat, 03 Apr 2021 14:43:16 +0200 Date: Sat, 3 Apr 2021 14:43:16 +0200 From: tomas@tuxteam.de To: Shironeko Subject: Re: Idea for handling timezones Message-ID: <20210403124316.GA32004@tuxteam.de> References: <20210402113434.GB16839@tuxteam.de> <47bc203d8a8facda27c59c363319ae195d643dba.camel@tesaguri.club> <20210403075608.GA19516@tuxteam.de> <6C3BE991-28DD-4AF5-9912-431112314A01@tesaguri.club> <20210403083029.GC19516@tuxteam.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617453840; 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=bsxbsKmWEA6+Thrq95uwfAulNUFp8SyQ9n2YAAwbDLM=; b=b3wC5FaeHSgLDw5npw18FV44SIJNab5igFUuz/dMSOgsRjUVuf5uRNqU5LnzCuPWjZL62D T+WLnc5IW6G4Od6czwyTRD2uuD0iucnbkNXK0wfBeQoozNLjebYsNFvMolBGPZUZ1h2Qom PIAq+w/jx/wpwsNL5eBtIz4FN9oaPkXb3YlZf4RK0FGLuxqhdKJVbrvonk1ieJYXGWXZCx DvOzLJMmtHQ6Wje1NurrBCgh0Y6iFUAifwY7gEc2Gof3hjdXknyxAYLSB8vkfxs3HYaNhk 5l1GFctHMVSvYk/NyY5cm7mkHvn1ZFSSHz3aWhIjATqBeW6l1f+M6V/qoemipQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617453840; a=rsa-sha256; cv=none; b=S0L9rHK1ils63g1KDj6smeZ98F6M6gbZsrkr6ZxqhiKeB0dIwTpwfFWB02ncHbWlcpqSKC Wpv2vMsmJCyxXf7uCqed7gmyHtPSTmfuGwkXmDcrPhu5wWH6X2Npds91i8diguhTeMc/dE qJkpmG8Vj+puB8oxY1m5dH0q/nE25pXbNKM7ipSDat8vm93kHKjSdWOf3nG75by824laws LxNq8AAB+cOyFKMduTWfWcdKDIfEBjiC/82CKAak9j7d66v99ua/y/tQtyHVtlKYov1Z5N aLf4z6Ot7ygC6hO+qd8BlgqTb9i/hQ6ngbyeibjPdUnx3m65nY2JV8zY4/PWJw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tuxteam.de header.s=mail header.b=O5yB+oe7; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -4.73 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tuxteam.de header.s=mail header.b=O5yB+oe7; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 99D1A2849C X-Spam-Score: -4.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9fDRbauk37oU --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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: [...] > The ambiguity caused by dialing back is resolved with > $ TZ=Asia/Shanghai date --date='TZ="America/Toronto" 2021-11-07 Sun 01:30 EDT' > Sun 7 Nov 13:30:00 CST 2021 > $ TZ=Asia/Shanghai date --date='TZ="America/Toronto" 2021-11-07 Sun 01:30 EST' > Sun 7 Nov 14:30:00 CST 2021 I understand that. Yo've got to specify (EDT vs EST) whether summer time was in effect when taking the time stamp. But then, why not specify the offset right away? Less dependency on "ambient" information. No dependency at all on whether the database has changed [1] under you. And so on. Of course, the ideal would be to keep time in UTC and display accordingly to the time zone (ideally also, provided with each time stamp). But I fear this would be pushing things too far... Cheers [1] This Shouldn't Happen (famous last words ;-) - t --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmBoYuQACgkQBcgs9XrR2kZ5WwCeKK7gQiJvX2FtBxevm2eOXLMG VBEAn0ZnFTB7XMaSr27HvsIPyCo7uHg7 =tcYZ -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM--