From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id YEVxEUOXSGaEHgEAqHPOHw:P1 (envelope-from ) for ; Sat, 18 May 2024 13:55:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id YEVxEUOXSGaEHgEAqHPOHw (envelope-from ) for ; Sat, 18 May 2024 13:55:47 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=krgKcign; 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=1716033347; a=rsa-sha256; cv=none; b=Kmjfc6Uiu50jv51GTurBB72UFo2AYZPOnILIWs4HeMQCF1HfPe18gD5XTG04y0SxDBGev1 5w4V+jdNfO7ZbqoGA3Yx6XUgE3gcfn1a31L+9u+olioADlyH8LotvI8DzJjKK5sAjqdmcD Y1tJUifAwuz8HZPsZmLYCO3dZHQak1dp8Gh46GpnWk2E+ZvRjPkUP+5D5NDAziydgMIW6/ sHHXdb4NU9AMa6vwo3zh/mylw1YlO3S3L90wHKJCx0tCZj9/GK09vo/P/TgoURmRLhwpXQ JFS46f8JziFTI8S1c5u/BMoFMYXIdOQk88FbW7Fj84xTeirkq6Dwx6NC9WzouQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=krgKcign; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716033347; 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=77Ox0Xo8cMW7RQ5e02DdYEH0OOe5VAT7nN1G7h8Eq1w=; b=XvKfiRXvfVx+DTW9lxyL8CJ5SYuzGheel/mQ6kit7zFDQ70iHcVDBerKbNlWu3sWPG5NgC cUYYV0Z6/9RvFzKCYRaHbnag5uXWWg0QxSs3PYjseTh8zBkFgPN9XmuDcLNLHSTrSfnFvn aTA1Pa+LZGrgTmuvqx6gZ3MwZcB99j1N2ZfGrMRnTC3kmh8flz/RLniFyjG8upyEuoL+3T J9z+8rdPLLhVoR9uwTQL0V+P6zj16ZvWu+EgKZ4EJ4d4TlhXgQcmC6ndQ9HWfwXrb1Wb0f GWpcipM4LtpsffFcNIFv4a2uiQaLvKT9IqnZdonXN6b4cq7D1phWItcV6swp7w== 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 2B68110FD6 for ; Sat, 18 May 2024 13:55:46 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8IeO-0002pm-LY; Sat, 18 May 2024 07:54:56 -0400 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 1s8IeO-0002pZ-4l for emacs-orgmode@gnu.org; Sat, 18 May 2024 07:54:56 -0400 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 1s8IeI-00071b-IT for emacs-orgmode@gnu.org; Sat, 18 May 2024 07:54:55 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 53F42240104 for ; Sat, 18 May 2024 13:54:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1716033288; bh=nHXrDgyd/rY+DiuAmp4Wl7c+pOJb4UVUeFxCjR1Ohi8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=krgKcign/yfAOcaFHB38MpwVVV8d+FsFSX0jLwZTZ5nc6uFF88JMVcw5fDs9CQ/Hz sL26DgSfSVQl8DWCnDMTnFPkVLeuCV0C4AxJ+Sh/79YnzQ/bMiyb6IAFnRPFeiW1Uv cxdRv5zHQn+28PoNtUqCmqjsbwxDLYzWGWlRoeI+KqV9jfCOw6WArOicVuxNQeYJRm jigxbiMNjARjPGiOPsFUQsyV3O4LTzkztRseNHChIMwmyDlMuHYjKhje51/y2nnWIP hnML7tqXxg34covXzpQ7/LaGdsRCan+fFWxWUCLliDIOfw/JN5ediD3B4MSte+ZWTl PxC4xtPUeNc6A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VhMh73Ylyz9rxF; Sat, 18 May 2024 13:54:47 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?) In-Reply-To: References: <87frvzodze.fsf@localhost> <87v83if2io.fsf@localhost> <87seykpn58.fsf@localhost> Date: Sat, 18 May 2024 11:56:28 +0000 Message-ID: <877cfrtjtf.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_H3=0.001, RCVD_IN_MSPIKE_WL=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 X-Migadu-Queue-Id: 2B68110FD6 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.13 X-Spam-Score: -8.13 X-TUID: ysV0Q6Zjffpd Max Nikulin writes: >>>> +(defun org-time-inc (unit value time) >>> Is there a chance that support of intervals like 1h20m will be required >>> later? >> >> Not sure again. I simply used ts-inc function signature from Adam's >> ts.el as reference. > > ts.el has `ts-adjust' that may change several fields. I had in mind > specification of time interval from RFC5545 iCalendar P4h20m. We do not follow RFC5545 anywhere. The closest is org-duration, which would use 4h20min. But then one can simply use (org-time-inc 'minute (org-duration-to-minutes "4h20min") time) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at