From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kF9YMKBVZGI5agAAbAwnHQ (envelope-from ) for ; Sat, 23 Apr 2022 21:38:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id Kf0VMKBVZGJtcAEAauVa8A (envelope-from ) for ; Sat, 23 Apr 2022 21:38:08 +0200 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 0E7E73BF9E for ; Sat, 23 Apr 2022 21:38:07 +0200 (CEST) Received: from localhost ([::1]:58448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niLZy-0002uG-Gc for larch@yhetil.org; Sat, 23 Apr 2022 15:38:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1niLZN-0002u4-9E for emacs-orgmode@gnu.org; Sat, 23 Apr 2022 15:37:25 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:34748) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1niLZL-0003QA-Cq for emacs-orgmode@gnu.org; Sat, 23 Apr 2022 15:37:24 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5DFF216009A; Sat, 23 Apr 2022 12:37:19 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Yw9xtGTPYEBz; Sat, 23 Apr 2022 12:37:18 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9665D1600C5; Sat, 23 Apr 2022 12:37:18 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id JfyaEpJw6y9T; Sat, 23 Apr 2022 12:37:18 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 6C08216009A; Sat, 23 Apr 2022 12:37:18 -0700 (PDT) Message-ID: <329701d8-3682-51fd-f086-4e1e06bc9f8d@cs.ucla.edu> Date: Sat, 23 Apr 2022 12:37:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [DRAFT][PATCH] org-encode-time compatibility and convenience helper Content-Language: en-US To: Ihor Radchenko References: <7f4ea652-7d22-fb61-f873-5e92f078c9e6@gmail.com> <87mtgcmckj.fsf@localhost> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: <87mtgcmckj.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@cs.ucla.edu; helo=zimbra.cs.ucla.edu X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Cc: Max Nikulin , org-mode-email Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650742688; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=cKPb+RSWBCe03qF5snoHN+QvM3z92MNg7WJPw29NigY=; b=NUvI4bocH9PzlWB4CLqArOi9t1KfQG3xIF0h0WpknwtzuK/imtAal36DOORAKFpJxlIvbq 1rl520MGNI2dVzXW8xHvMRZ/XHeumL3vWotb/BsXypueSRVvLb5yospMy44W3aJGvP21LZ 8YBE+9Px51OsQ72f7dao8yFX1z9CaBUp/3yyFfLrma+yreh5fNIZyjGug3l1Wln/OWSzSs F7w6WQ3YXNoglDUI+G2ltpj+OZ31UVfYfEjWjd08ccjJVxVQsBCQLR3JUo5/ZFpj1WhoEv 8w1R4V6i+NvEyrE/rT2f9gwMLYaabuVnpDk0vow7s+wvTa/51U5rIgnQXBl4eA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650742688; a=rsa-sha256; cv=none; b=YyEFaDVA34hEh8sFdsrWvkHYMTRxbQIW/UVra1tzTySWqcWAuX/grdYkYjmciRojK07soq 4+8xqptxdS1ScWF0G5sEUvD2E8hMwLzKPDWO/UhbmmLRpEvZM+/lbb1goBL+B9qlucf3mM +9du6vVV1cytx0AklxML34SckvWoO3WyurG+LGow3+RMi7AwhmlwUAk3I9CMkHOE4wRpVk n6DP2+OSFgLUF1NNf2UXKDY08k6e9LlrLZzMoON8mFIOl2eFzW0cPC0F/aFtaa9kRaagId pncp9l8IyAyfmM27veqpXRv56RtMZ9sR3JYeMDIdemXDDKEyIPR1DHC3UM/HGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Spam-Score: -3.02 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Queue-Id: 0E7E73BF9E X-Spam-Score: -3.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: YPAcs+8lOLG1 On 4/23/22 01:25, Ihor Radchenko wrote: >> + (should (string-equal >> + "2022-03-24 23:30:01" >> + (format-time-string >> + "%F %T" >> + (org-encode-time '(01 30 23 24 03 2022 nil -1 nil))))) >> ... > These tests will be executed using system value of TZ. I am not sure if > tests are not going to break, say, in southern hemisphere or at some > other bizzare values of TZ. > Good point: that test won't work in a time zone where the local time 23:30:01 does not exist due to a daylight-saving spring-forward transition.