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 mEnnItfBx2Pw3AAAbAwnHQ (envelope-from ) for ; Wed, 18 Jan 2023 10:54:31 +0100 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 iH3DItfBx2N5GAAAauVa8A (envelope-from ) for ; Wed, 18 Jan 2023 10:54:31 +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 506C728B37 for ; Wed, 18 Jan 2023 10:54:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pI58t-0008P1-VI; Wed, 18 Jan 2023 04:54:03 -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 1pI58m-0008Jk-NA for emacs-orgmode@gnu.org; Wed, 18 Jan 2023 04:53:58 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pI58k-0005L1-JF for emacs-orgmode@gnu.org; Wed, 18 Jan 2023 04:53:56 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 673EE2402D6 for ; Wed, 18 Jan 2023 10:53:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1674035632; bh=Ba5qe9s2uZInrcSIWM3E9GZP/6v9RHvwPH0CtJGRlcM=; h=From:To:Cc:Subject:Date:From; b=CTs4+4noDAMGJx7YfNlrboBDCpPatE2hwGym/IVFP3hBKHQx5L4sHXBNX7SXLt64P /qh/YaNRPNkxWJVsqZtb3pXdnKbMxcn9ylPM4iAXU4gVXXMU0F3uqfwEVxWKpG0ilG /TUslNKVoTj+isYrAVV1OinCtIm5BylVBQtD4EVsEuQQeAuxicK/u38melJt/KvkAL 3bAXNkAoD2rE2SNk16mpDF4yN7mgE4Balw1/RNKAwuDGLdN4M2RKQsO4JOwGiJ+xXW eEX5Wm6vo0DK1isFpz4gdQ/HX1/nRfpuyY3G603svoRRDYyMvJ+zcxpSkcxM66HVH2 oziK0kEfR0HIg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Nxh0r5PPwz9rxH; Wed, 18 Jan 2023 10:53:48 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: Observation of hysteresis in a GNU libc time conversion function In-Reply-To: References: Date: Wed, 18 Jan 2023 09:54:20 +0000 Message-ID: <871qns88xf.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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, 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674035671; 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=p4fAyb6fm3PfBq2bhOPQoJal+r6U+UFSTB1AIdcGYLc=; b=qCjhQDpGeihiBoo2dtWIkjsghuY/oO/RWjPZTqUtnGPyrBMFjVXUpu+akhrpla1EmO6CDA 5n1yOGkts70hzNhG0w854W6sAjbyvofM7qVNdO5bJ24kTW5yH79xcjgRZPCLsdM3le7NlG rGWIj/2WkjGVlvXfcz6VaPnnoTd9Kb/K+o1QQK6V2igPvped6wt6UpgqwIuvlUfqH4M0UI XWlWOoA2w+27TT1ce/6BJQOsHUhP3fyuvc9/tap9oBy4Txxe+2QrOeyo7Fcm22b0Gpv65n lyj0XjF6uhJnYd4nKuUvGWdMZqKNiOkhHpz0ASZbeUJBJKxkVm2MMm7ZuE/vkQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=CTs4+4no; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674035671; a=rsa-sha256; cv=none; b=Rf6oC2ga8r8F14QKuhaLtJcAaiQ+2IeycglyNEDhtJO6w2Csm1btHpoGz4bowAiGvEidpM 0mPcCs0G6lKinTc1fDtQNtxqm5QeWwXOeDDIGJrk0WJ9/YLZzYHnCVlRjqgfFMU/Kf4++7 zDBhrl+GxkxNya3nA8z/0OWW3XAtNFpmGY4KbyJAw5zuDfPtFsDmFjskxIp44oU3PMwt3j zhmQ0faKfU2AbV/pcL386BhCtzPGz4WSMAMUI3CUvYZALponHgAZgwqiSQOy24YNNCtZsP +SpuSW42vnYgnnxm8C1WNK4dTM75lmNdjH9uQmNqtxbde45RmAmKcUPJkV4orw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.58 X-Spam-Score: -4.58 X-Migadu-Queue-Id: 506C728B37 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=CTs4+4no; dmarc=pass (policy=none) header.from=posteo.net; 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-TUID: zSXNx1M+O/75 Max Nikulin writes: > (dt '(-90 -60 -31 -30 -29 -15 0 15 29 30 31 60 90)) This is problematic. You are putting MINUTES out of normal range. Looking at https://codecogs.com/library/computing/c/time.h/ctime.php?alias=mktime, out-of-range minutes are not documented. Also, see https://stackoverflow.com/questions/20104531/weird-mktime-logic-with-negative-seconds Using out-of-range time fields is not advised. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at