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: Sun, 09 May 2021 12:02:06 +0100 Message-ID: <874kfc41ch.fsf@tcd.ie> References: <83tunc8kv3.fsf@gnu.org> <87fsyw5nfg.fsf@tcd.ie> <83fsyw8g7f.fsf@gnu.org> <87tunc4793.fsf@tcd.ie> <87zgx4nsjd.fsf@gnus.org> <87k0o8441c.fsf@tcd.ie> <87czu0nrq2.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39216"; 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, lewwadoo@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 09 13:03:38 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 1lfhDm-000A6g-Fb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 May 2021 13:03:38 +0200 Original-Received: from localhost ([::1]:40824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfhDl-0000a9-ED for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 May 2021 07:03:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfhDC-0000Zv-Sl for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 07:03:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfhDC-0004JV-JF for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 07:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lfhDC-00024o-Fs for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 07:03: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: Sun, 09 May 2021 11:03: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.16205581367971 (code B ref 48298); Sun, 09 May 2021 11:03:02 +0000 Original-Received: (at 48298) by debbugs.gnu.org; 9 May 2021 11:02:16 +0000 Original-Received: from localhost ([127.0.0.1]:55334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfhCS-00024V-9l for submit@debbugs.gnu.org; Sun, 09 May 2021 07:02:16 -0400 Original-Received: from mail-wm1-f45.google.com ([209.85.128.45]:43977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfhCQ-00024N-Cn for 48298@debbugs.gnu.org; Sun, 09 May 2021 07:02:14 -0400 Original-Received: by mail-wm1-f45.google.com with SMTP id b19-20020a05600c06d3b029014258a636e8so7261015wmn.2 for <48298@debbugs.gnu.org>; Sun, 09 May 2021 04:02:14 -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; bh=13VF0OHKQgoSuwNxPjhSbgkQiUZWP9Ny/MTB4b/BuqE=; b=aB0PLilZHvF8zDhZD/pae1vOtSPc9/78KOrb5L2etrkVqoBw/oqTUFT4Z0BNMQErRh x0po6DWieM64MrpD4dq6FQeE1cHS/+fQ3ovudTyO1YjzR43OzfliBjNbwSRPUL2Zh/ee RKgrqCWI88TUXx4Y3rkYkN+2sDCzXidpX6f3O1nFIlykWP6f7UZIZxWjGDVXCTxuxXB3 a4leCrsUYKD+ZzNt8RQax95zpwvQntwGGKJsus07kWainW+r2iFhCRaOAPYjTb3KJoAT ToWTyyJdf+qcsm9F2YAoIlz8Bso9k486uBS2UJu8d8Dm4L7WfalKd5u6NcLzKar4IiAY cHvg== 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; bh=13VF0OHKQgoSuwNxPjhSbgkQiUZWP9Ny/MTB4b/BuqE=; b=RAq6jVcUMfmxUBJ6ibXiv6PXRCJMssZCUksHOsiKmVydBDxGunyTeN6BRjaqYQIh+3 EQYXB+eJZ2FYAW2PVhBWI3xxQqCFU/joqUZ2W7dG+F/cBIb1uT1PV6xw+GRUUH91FFsa jBwCgk3ZvXx7/bcWySbWW73g6J2kKHOXtniXO20dzn/vDGiM8gD9SlPSGyb6n0CVd3/r sbX3KyHqPyFMlPVd+M4JQDq17Oxk9x/9fVlragVnIHPYQ+LQIIH4jhlb9zvVrYg/mERA A9NVIykyH/XC9L4MBF6LUvlE4zbKl7i6zm0IcZTlLPtmymea91QHdUWYtvXJIbnZaS+b zU5g== X-Gm-Message-State: AOAM532kZnxxNIy3CTae6RPKWzRwdYkEa5J0mN9YNxS/KEpkITL47Pvp yp3Nl0KacYi75kESjp4Bz1we1g== X-Google-Smtp-Source: ABdhPJyFYEpW1laTu6tTSU/RT85jrQYQoC13HoL0/dHdna7p00UYwSNmdW4ReFVHJcb8YRTN4Dtoww== X-Received: by 2002:a7b:c344:: with SMTP id l4mr31505462wmj.120.1620558128825; Sun, 09 May 2021 04:02:08 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:f410:82e8:3a21:eedf]) by smtp.gmail.com with ESMTPSA id v21sm21227312wml.5.2021.05.09.04.02.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 04:02:08 -0700 (PDT) In-Reply-To: <87czu0nrq2.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 09 May 2021 12:09:41 +0200") 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:206068 Archived-At: Lars Ingebrigtsen writes: > "Basil L. Contovounesios" writes: > >> It already does: >> >> The default value is based on January 1st, 1970 at midnight. >> >> Can it be clarified further? > > Oh, so it was just a bug... > >>> (All the other defaults are as zero-ish as possible, and 1970 is used >>> here only because of technical limitations.) >> >> Is it worth mentioning in the docstring that 1970 is chosen to guarantee >> portability, similar to the note in encode-time's docstring? > > Sure; makes sense. Done: Default to 1970 in decoded-time-set-defaults b376ed7220 2021-05-09 11:52:20 +0100 https://git.sv.gnu.org/cgit/emacs.git/commit/?id=b376ed72204193eba652666fa2540f412f456490 Evgeny, does that solve your issue? Thanks, -- Basil