From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) Date: Sat, 08 May 2021 23:37:43 +0100 Message-ID: <87eeeg26o8.fsf@tcd.ie> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17024"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 48298@debbugs.gnu.org To: =?UTF-8?Q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9_?= =?UTF-8?Q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 09 00:38:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lfVaO-0004Jk-Kk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 May 2021 00:38:12 +0200 Original-Received: from localhost ([::1]:57326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfVaN-0003eC-N0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 May 2021 18:38:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfVaE-0003dy-NA for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 18:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41155) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfVaE-00062I-F2 for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 18:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lfVaE-0008VF-DA for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 18:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 May 2021 22:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48298 X-GNU-PR-Package: emacs Original-Received: via spool by 48298-submit@debbugs.gnu.org id=B48298.162051347432679 (code B ref 48298); Sat, 08 May 2021 22:38:02 +0000 Original-Received: (at 48298) by debbugs.gnu.org; 8 May 2021 22:37:54 +0000 Original-Received: from localhost ([127.0.0.1]:52700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfVa5-0008Uw-V5 for submit@debbugs.gnu.org; Sat, 08 May 2021 18:37:54 -0400 Original-Received: from mail-wr1-f52.google.com ([209.85.221.52]:46593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfVa3-0008Uj-0o for 48298@debbugs.gnu.org; Sat, 08 May 2021 18:37:51 -0400 Original-Received: by mail-wr1-f52.google.com with SMTP id x5so12747803wrv.13 for <48298@debbugs.gnu.org>; Sat, 08 May 2021 15:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=Vnxtlg/HTnzB6UCVLVjKs2T1bDTlrj/CZDbuQfzMyaM=; b=IZ3C0RhH3qcv7nRK2u4Z1uE4MKGwkFWTwovnxRa9Neur/7Mwifph9yjVkho58v+poc 0kMYGxymodVBnal0UpRxNhZNqwC9iNCMcGyTx6NAAeFlFsOGXfvBiL/WgIwO5SnaWxD0 QaBo1ua6MOIjS6FPw+/MIy+NEXW8sFOoIkviDKt4McjXfdov01A9m6BQpZFMEf22ZcfM qiXAgRq1VhnbyODJOruNNxM+Y4ZjiDGgKXlV9lIzXVi8MYrbOHAOaZ9l7HIgVq+ggZ0v ciOAihrrt1EU+/la2RBJlhxong1aY+LlwSxDsTXBbnyb7fmq3bwGtOolpFJTgXJ2FFAV Qw9Q== 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:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Vnxtlg/HTnzB6UCVLVjKs2T1bDTlrj/CZDbuQfzMyaM=; b=GcUjKG7KE6mxhckDvbJdzrMHLUER3sb7SO6dtHJU954y0PaWuUYzBDIpWqCsdOQuXF dC79E3tmXXH0xBZ2t7ACzIlC+uKSSKEoaFo2LtBUGNAvNsxzKfHkcl7dW5TSDqrNlsXd u/M5RgFs1hrDJiEvu0oNEbui/Sq3ba1YuBL4tpc4c4ntazmQv50Hyhyo25SWAJCCKaw6 rdR9FDGlGNEXDD5whBQA8XJotO8QVQA436fGJ1eLymPUBY8vVGcNq6w0AvsaZclfXuD+ FqvCJ/qc9QuG8d1pWtl355amXZdlh72X9QXZw3klTlmWqCH3DKxgkN3GpN5qfdFPPZqb UV0g== X-Gm-Message-State: AOAM5311wEckdothcOuvnk4KCwkfBC+Y5xCTBSsnFLHtv1XoBZ3ejryE 3LusEtRxqG3q/sqbQQUcX6rCSw== X-Google-Smtp-Source: ABdhPJwlGsXPEwSdc3f5Adtgld9Q4zJ1udicsC94lAm2kRX5dEPjKQfvdKQc/HEmLagkAaAvs/faqQ== X-Received: by 2002:a5d:5008:: with SMTP id e8mr20948711wrt.386.1620513465076; Sat, 08 May 2021 15:37:45 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id p10sm15172158wrr.58.2021.05.08.15.37.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 May 2021 15:37:44 -0700 (PDT) In-Reply-To: ("=?UTF-8?Q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9_?= =?UTF-8?Q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2?="'s message of "Sat, 8 May 2021 19:55:10 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:206035 Archived-At: forcemerge 48290 48298 quit =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=9C=D0=B8=D1=85=D0=B0=D0=B9= =D0=BB=D0=BE=D0=B2 writes: > (my-mins-between "11:30" "12:04") > > (defun my-mins-between (time1 time2) > "Return the minutes between HH:mm strings TIME1 and TIME2." > (let ((diff (apply #'time-subtract > (mapcar (lambda (time) > (encode-time (decoded-time-set-defaults > (parse-time-string time)))) > (list time1 time2))))) > (/ (float-time diff) 60))) > > Debugger entered--Lisp error: (error "Invalid time specification") > encode-time((0 30 11 1 1 0 nil -1 nil)) > (lambda (time) (encode-time (decoded-time-set-defaults (parse-time-stri= ng time))))("11:30") > mapcar((lambda (time) (encode-time (decoded-time-set-defaults (parse-ti= me-string time)))) ("11:30" "12:04")) I'm not sure what happened that resulted in two bug reports being submitted, but this looks like the missing description from https://bugs.gnu.org/48290, so I'm merging the two reports. Thanks, --=20 Basil