From patchwork Sun Aug 4 03:13:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lilah Tascheter X-Patchwork-Id: 66640 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id AE62727BBEA; Sun, 4 Aug 2024 04:17:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D6B7F27BBE2 for ; Sun, 4 Aug 2024 04:17:11 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1saRjw-0003mN-TF; Sat, 03 Aug 2024 23:17:00 -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 1saRji-0003k9-DP for guix-patches@gnu.org; Sat, 03 Aug 2024 23:16:46 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1saRji-0002Q4-2y; Sat, 03 Aug 2024 23:16:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=rF0HxWCgcf/VEP5PbScOUADP1Ar6Ys6Ha2KztD/zTHU=; b=qimGvw0WSIBC+5mJFIS8/xe0M1547Yc3nrPYCKsnjS8PrcTNA7kuBMQ/aweeRCQN/IB8YJ//WmNn1UO1tcx3QmDopuATt2nT27jf6ny2iiPoi8n+Gb+cdawY9UHE0Pycl1Lu8SjJg+81osVbx+bJDUleflb/BwXdzBpcNrRwG3n7xoyoWwiEJdwe9ewSsPenMiB2swsyQYcBg7RTY3g3UU9tTfYFyOKzxI/y6qxAGeUQE50tkiDp0Bq4vFzp6V9kawQWzCkjVYa8BUXmAaWfCad9Nfsa6LZeBpYyrlaiRz67l/BV1SUKuPWCtGxBxLeThNJarwpXIZPsR6Y7zGyFVw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1saRk0-0007nU-E5; Sat, 03 Aug 2024 23:17:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69343] [PATCH v3 04/12] Rename seconds->string procedure to epoch->date-string. Resent-From: Lilah Tascheter Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Sun, 04 Aug 2024 03:17:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69343 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69343@debbugs.gnu.org Cc: Felix Lechner , Christopher Baines , Josselin Poiret , Ludovic Court??s , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic Court??s , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 69343-submit@debbugs.gnu.org id=B69343.172274137829691 (code B ref 69343); Sun, 04 Aug 2024 03:17:04 +0000 Received: (at 69343) by debbugs.gnu.org; 4 Aug 2024 03:16:18 +0000 Received: from localhost ([127.0.0.1]:54997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1saRjF-0007in-Lu for submit@debbugs.gnu.org; Sat, 03 Aug 2024 23:16:18 -0400 Received: from sendmail.purelymail.com ([34.202.193.197]:56516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1saRjE-0007iF-81 for 69343@debbugs.gnu.org; Sat, 03 Aug 2024 23:16:16 -0400 DKIM-Signature: a=rsa-sha256; b=V6I/7vg/b2+EwJvyM0aV8xMcwnGRVZcFa4/KebBRmW08vjw0zeNBOukyf4bnnzbIA3aRRX+kQA+YFKcnI6qChS+8XuGDUMoliH9HdhIIg/8PJuaFJPcOCMuBZE3AOU6VFIEWnhbh0FPUTlU3obOxalkN5G9UNq/abOb4DouzWC2U7E/qOxVhfmBAfQPSj72YRdFNFzLcRM95UPvSQM/ajQCFuCuMJgDsr30jFfj2oeJht7R1klGhubPsGKuY6Qh6hYK5+t+LPBOPYPL2D+2vHEGpOP929vIvMEbc6BS5ypOxpwA0wJ4xeZZzq3yMgDOVocTcuZO+495D7QpNX5m0IQ==; s=purelymail2; d=lunabee.space; v=1; bh=oThLW0/lymMCVSVmKwy8oE8qI6vmgdd2ZBmkRVkECVU=; h=Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=k0PuBkTvqP2YyjuIkVV2JVBTEiZ+t/S2YoMpACHm/07u56Hkd+swh4wHru/5G0MTCjgeJ+Kk7fC56udwbby1DD6lOVQwalFDiiYo/pbkcRUrnjyRe6IPP4fIZpcDq4sT9JPsGK4NCyb5iHDOJGIWIMFLZinWCRUDzsP5msy9Vlgomzj6QdnItGdZGZU1EA0sISbKbTAbFwa6tSkBNbaH7Ges96h0Ip/vrjOIdyLr5MrRGfhxeNc/lZhstoe7/af+OBg0BEWQPWjCq4yOlxwxl9neJr8FNaMYfp1xSL9X/E2L9yzmEV6gxgzRGp0Gde5haR+hI4zZOM4QgkV+QWaikA==; s=purelymail2; d=purelymail.com; v=1; bh=oThLW0/lymMCVSVmKwy8oE8qI6vmgdd2ZBmkRVkECVU=; h=Feedback-ID:Received:From:To:Subject:Date; Feedback-ID: 8937:2070:null:purelymail X-Pm-Original-To: 69343@debbugs.gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -2124817350; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sun, 04 Aug 2024 03:15:37 +0000 (UTC) Date: Sat, 3 Aug 2024 22:13:26 -0500 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-MIME-Autoconverted: from 8bit to quoted-printable by Purelymail X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Lilah Tascheter via Guix-patches From: Lilah Tascheter Reply-To: Lilah Tascheter Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: Felix Lechner * guix/scripts/system.scm (seconds->string): Rename to epoch->date-string. (profile-boot-parameters)[boot-parameters]: Update as above. Change-Id: I2b9aaa816b3ca84c32f7d6fa690245b149228310 --- guix/scripts/system.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm index 7000c470ed..cb70d36219 100644 --- a/guix/scripts/system.scm +++ b/guix/scripts/system.scm @@ -328,9 +328,9 @@ (define-syntax-rule (unless-file-not-found exp) #f (apply throw args))))) -(define (seconds->string seconds) - "Return a string representing the date for SECONDS." - (let ((time (make-time time-utc 0 seconds))) +(define (epoch->date-string epoch) + "Return a string representing the date for EPOCH seconds." + (let ((time (make-time time-utc 0 epoch))) (date->string (time-utc->date time) "~Y-~m-~d ~H:~M"))) @@ -348,7 +348,7 @@ (define* (profile-boot-parameters #:optional (profile %system-profile) (inherit params) (label (string-append label " (#" (number->string number) ", " - (seconds->string time) ")")))))) + (epoch->date-string time) ")")))))) (let* ((systems (map (cut generation-file-name profile <>) numbers)) (times (map (lambda (system)