From unknown Wed Jun 18 23:13:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#39205 <39205@debbugs.gnu.org> To: bug#39205 <39205@debbugs.gnu.org> Subject: Status: date -d '...' should support superset of POSIX 'at' dates Reply-To: bug#39205 <39205@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:13:46 +0000 retitle 39205 date -d '...' should support superset of POSIX 'at' dates reassign 39205 coreutils submitter 39205 Eric Blake severity 39205 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 20 11:23:38 2020 Received: (at submit) by debbugs.gnu.org; 20 Jan 2020 16:23:38 +0000 Received: from localhost ([127.0.0.1]:45867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itZpv-0000W6-8x for submit@debbugs.gnu.org; Mon, 20 Jan 2020 11:23:38 -0500 Received: from lists.gnu.org ([209.51.188.17]:39253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itZpq-0000Vv-Bp for submit@debbugs.gnu.org; Mon, 20 Jan 2020 11:23:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57638) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itZpm-0006mg-OW for bug-coreutils@gnu.org; Mon, 20 Jan 2020 11:23:30 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itZpi-0003Tu-Vl for bug-coreutils@gnu.org; Mon, 20 Jan 2020 11:23:26 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:32570 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1itZpi-0003Tk-Sg for bug-coreutils@gnu.org; Mon, 20 Jan 2020 11:23:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579537402; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8Du/82o2a/+bWEzGDIHBOs6iS38oPhbIBt2TWDacwso=; b=RtlgkMcg80QWIxtIYvZRvuLJ4BAZkqf/qP01KLEx6d/LKP7ViwtQ7MlPqypEfxn4yfe31Z yMaWdejykSdp13ZKWr6bkPxk/7wMdv8IIdWUJQfMvf6qupXPj4FKJ9JbxnjVhGiXhXhvVD Tbc0wi8zoAXrc9uDUP1ASa12Iz2N27E= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-86-ZNBdHsRZPBmHCNkmz0OSIg-1; Mon, 20 Jan 2020 11:23:16 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B8045100552B; Mon, 20 Jan 2020 16:23:15 +0000 (UTC) Received: from [10.3.117.16] (ovpn-117-16.phx2.redhat.com [10.3.117.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 82EB95C1BB; Mon, 20 Jan 2020 16:23:15 +0000 (UTC) To: Coreutils , Gnulib bugs From: Eric Blake Subject: date -d '...' should support superset of POSIX 'at' dates Organization: Red Hat, Inc. Message-ID: Date: Mon, 20 Jan 2020 10:23:14 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: ZNBdHsRZPBmHCNkmz0OSIg-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 205.139.110.61 X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) On today's Austin Group meeting, the question of whether some form of 'date -d "..."' should be specified. While there is no way that POSIX would standardize everything that GNU date can parse, there was an idea that supporting '@seconds' since Epoch, plus all of the formats already required to be supported by the 'at' utility https://pubs.opengroup.org/onlinepubs/9699919799/utilities/at.html might be acceptable. But that would imply that we want gnulib's date parser to be a superset of the grammar required by 'at'. We are already most of the way there; required support dates such as '2pm + 1 week', '2pm next week', and 'tomorrow' work; but we are lacking at least 'midnight'. Thus, I'm opening this bug to remind us to add the remaining few items to our date grammar, so that we can parse everything 'at' is required to support, and in case POSIX does decide to standardize -d using the 'at' grammar as a starting point. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org