From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MLEqITjyLGEjNwAAgWs5BA (envelope-from ) for ; Mon, 30 Aug 2021 16:59:04 +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 iNqZHDjyLGGANgAAB5/wlQ (envelope-from ) for ; Mon, 30 Aug 2021 14:59:04 +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 00BBC83A6 for ; Mon, 30 Aug 2021 16:59:04 +0200 (CEST) Received: from localhost ([::1]:59740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKikY-0001R9-IU for larch@yhetil.org; Mon, 30 Aug 2021 10:59:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKikA-0001R1-Je for emacs-orgmode@gnu.org; Mon, 30 Aug 2021 10:58:38 -0400 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]:39623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKik9-0000Py-60 for emacs-orgmode@gnu.org; Mon, 30 Aug 2021 10:58:38 -0400 Received: by mail-pg1-x535.google.com with SMTP id g184so13702575pgc.6 for ; Mon, 30 Aug 2021 07:58:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=OuZ82jNmuJzUzIWoerRp35sFT5GIOLIztZc0ge/2+rM=; b=kHQ750HLg/MHDP7W1/+LgLD5uxyLdT6jh0GHvZvaZORKqE8MmgqkOSXeM8m4sqrw5F DY+GyVtGxjcXWKlN+9MtEmmFTFoo0rtw0BptRHjabklTWLr8J6Ck8giNeepRHxC1J2aS 21zph4En2pnoZcEnTKboz6eQpCMIXnuXaorH8zDMYQSwil/zstDcQOv6rRQSbiu1l3Sq eQQHf42lNE1Q7RFIhtnYfxgwiNVXZ8GL65y6mF6FmXWSTgLM+dTHavqsLc3MqAKAb6gg 2biDjbyXVC9nQCtn8iOtUK5CXLaApJ8aoeJSG1Kj/O/KFAACjHJbbHsKaLoaKqGCf39f +RaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=OuZ82jNmuJzUzIWoerRp35sFT5GIOLIztZc0ge/2+rM=; b=ItzsJw/t2T38ryU/MtW64OpXod1h4nrgmEURpjRUfYrs5gYKqLLdCIFsX1xkmuO1ff 9+l2BmiRfarSIhsQCoudW5HQ4YpMTJJYeF/zGKvX5ExsdWk8B7z52v4P9SGrHnW06dI8 jt4bIIv99ZDyStjJOTXK8QixF9P7sdQMtlBpeqbj1ob+iQGW+ebyZKeUzD4OIUgZUJ+x JnJoAtRhMvbIg9Csvmad86N8h1g/QvaB+BsTUnlSw8sTE+CMsfTvsZdt/uApjmAJrmvZ rl1xVT0Luf0Y42GENETXPh7T/zHZogJ2UC7JkaiAMYQiRlVEH7iK8DCvFT/XhBnOAw5v eilQ== X-Gm-Message-State: AOAM530PH+yjAEllaEkIpWQZh38KSqFpc0Fjnich0ZabpawikMsrGGp9 qCYV7rRAZPkbKRl3tMLYROAm1nbfStfrJ3B/ X-Google-Smtp-Source: ABdhPJy5aFfb4/jS2njCCORK9xugzdX3OrMBX441bta/MIZ69XfsxnDAeasAXGxVfuOICrK3QsFyRQ== X-Received: by 2002:a05:6a00:170d:b0:3f3:bcdb:4883 with SMTP id h13-20020a056a00170d00b003f3bcdb4883mr17539441pfc.68.1630335515858; Mon, 30 Aug 2021 07:58:35 -0700 (PDT) Received: from localhost ([206.190.157.238]) by smtp.gmail.com with ESMTPSA id v7sm14597954pjk.37.2021.08.30.07.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Aug 2021 07:58:34 -0700 (PDT) From: Ihor Radchenko To: Tim Landscheidt Subject: Re: Testing if a scheduled date is prior to another date In-Reply-To: <87a6l9ehl1.fsf@vagabond.tim-landscheidt.de> References: <87a6l9ehl1.fsf@vagabond.tim-landscheidt.de> Date: Mon, 30 Aug 2021 22:59:27 +0800 Message-ID: <877dg3nflc.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=yantar92@gmail.com; helo=mail-pg1-x535.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=1630335544; 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=OuZ82jNmuJzUzIWoerRp35sFT5GIOLIztZc0ge/2+rM=; b=hTueSNtkDMsZEYafUK2wovtPZ6Iyb8P1BoAcLV2OKojG+5Pk0G9GTfbc7zKAdfX0KyzpCy 78XFNNx5ZJllKQY0nJHJuWHyFtMzHjhhOmEKiftCpvmR7Xn36pPxkYH6lUXIsHlmtz+/KJ OHBJY92ZCEqBMNOud4Pn9oWcj2vL8AXJsnJ+xS5LzHtRQ/tTslsCmgBDSP4SXI1km70qQr 4IbD7u2cQ6lcpQ+9GEkPh3XidOsfk+7Sa2VX+ICHTmHiSMaGp3BbfuLi0VSWHxS3SSwM/+ C+YvQ3eXHUuEISkKonz4tRNewCOj43hle48WB2TcLfTURnyuWMSP8Gch9XNAJg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630335544; a=rsa-sha256; cv=none; b=Lz3KcdWos+IZWh3/HeiM1WViwZQnfkZYCc1Ir8EbwNU/jHgLYach0eVGWYtPUS+c+AmqFn knUqz4VscKOXOpnS0tULILZNsucMM7K7wol4IslEow3jQSRdlNiwFgDCJ+cPjePK5Cbmab laXhczRy2l7tKg3Hy5epbh+2QWhsnsXSJxnRFfvP8tJp0G+5aUnv2k3U+piOq8n6V6r2LO 4c0F7uTecqTl+J2Q7KIrxngHSLHq/N0s4Iqhu27YGKczgLWuKrqwGHC/dt8svRAlqBqubO W36gGVOKgHOMzq0qcPm9BTI1OIWsvpJAVT1eUE1w3ZzsnMH0Q9M7iiV0JkQGYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=kHQ750HL; 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: -2.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=kHQ750HL; dmarc=pass (policy=none) header.from=gmail.com; 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: 00BBC83A6 X-Spam-Score: -2.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: epnT5/2+oJRS Tim Landscheidt writes: > Before I wade through the various functions to build a con- > version chain, what is the best practice to compare time- > stamp values with dates? (And if there is an org-mode func- > tion that checks if the task at point is scheduled prior to > another date, I'd appreciate pointers as well :-).) You can try org-parse-time-string + org-element-timestamp-interpreter from org. Alternatively, you can use external 'ts library: ts-parse-org-element Best, Ihor