From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 8F3lJoT37GbLSQAAqHPOHw:P1 (envelope-from ) for ; Fri, 20 Sep 2024 04:18:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 8F3lJoT37GbLSQAAqHPOHw (envelope-from ) for ; Fri, 20 Sep 2024 06:18:12 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=pm8Snc3u; dkim=fail ("headers rsa verify failed") header.d=lunabee.space header.s=purelymail3 header.b="CinEWg1/"; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail3 header.b=NFzsX89H; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726805892; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=rF0HxWCgcf/VEP5PbScOUADP1Ar6Ys6Ha2KztD/zTHU=; b=YQsp5jjIycQkOxz86gOr041nZA4BAN7HogZQysELfnBQyDknSc3x3VvaB7Ya+qc/Vfy6Fs 7PtvjR2YFxkGqs2qR+4ZwrVHaTwYzXw9UngBgKkZRaLYTzzaut64XGkhJ9ESHGpgE6wUcG 7JJ0ekCww6obNlB6V0idJYVO5KbNRixNRjbYunpl8ERX77sjcaamXC58V99WzulwwynXGM lixkeZU1w0Tu6wIR5YOtgekrRKf0V+WwqkpxzqT4mtRs1BRPf7ZvDPWhtQsIOrExFa+GNF f/30aedZuPidAySFbttVybFgPxxQcw8oe4O/9QEkHcu8wzWlHB+6TrDMABWRbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=pm8Snc3u; dkim=fail ("headers rsa verify failed") header.d=lunabee.space header.s=purelymail3 header.b="CinEWg1/"; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail3 header.b=NFzsX89H; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726805892; a=rsa-sha256; cv=none; b=DAeatxuhw5VdpMPoNPeBJXg/8zlWAtI7ltHdJiwvL2OjxjfpGP+x057qOewnd6OBb8mt7T jLi3Dmu3sPfDqDD/DjJrvK6DOiCnQICexhbBk+P+3ZqGhqkfMilz+GH9oe3pl+A8tXFNeY 3FZSFhAFTEVdgVWjczqpARO9RwHVHqbkeE/VWwZ6uFI1LQ5xuDDxPbFbmO8zwulmltB6L1 i+Ytt0qKir4Rl7Mr70anvbZTiUUM/Vs1q2hC5dXv+nNtoXJuPLsaPcZdS3077gY6IJhj5T NpiK1NYQT5mbh5PDtZSbmvBA/D48QR0tFb0Rb2MMDacQQwnq5Xss+D8s0e904w== 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 7B4C5362F6 for ; Fri, 20 Sep 2024 06:18:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srV5c-0008Cu-Pj; Fri, 20 Sep 2024 00:17:52 -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 1srV5X-0008BH-L5 for guix-patches@gnu.org; Fri, 20 Sep 2024 00:17:48 -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 1srV5X-0006Fe-5j; Fri, 20 Sep 2024 00:17:47 -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=pm8Snc3uHCralgc7uGSdNAU29/Xf9p+bAogp1XLXcRgq22aX5i9IqMmfwSxfp9U7qYH9Z2oRYhrxx1JEsogjVIMdQqlSHLr9eOGx2tzym6QDrx4KUTZv+xhHgHg7GTzQZrHu4VC11h3v18i7Rf2Unf90BMvYc+zqNiI1gB+vdYvXkOGOxNCPwcqy5xFBsQvDJkJCxmxO4C6JHs8HGhiu4jBWXUR6d/QJCS4M4sDuoWVVTJBVYWzCaz7Sm8CHlJTKXkyQF4I0NaVa8B7ZQirr0mTcVZLvp1Cgg53YaDy9nC7gqNam/6HYeD27dF9G8niVD4hdkTFG74Oa3qGclXl3/A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srV5m-0005T7-VN; Fri, 20 Sep 2024 00:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69343] [PATCH v4 03/11] 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: Fri, 20 Sep 2024 04:18:02 +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: Herman Rimm , 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.172680586220891 (code B ref 69343); Fri, 20 Sep 2024 04:18:02 +0000 Received: (at 69343) by debbugs.gnu.org; 20 Sep 2024 04:17:42 +0000 Received: from localhost ([127.0.0.1]:33731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srV5R-0005Qn-GY for submit@debbugs.gnu.org; Fri, 20 Sep 2024 00:17:42 -0400 Received: from sendmail.purelymail.com ([34.202.193.197]:45754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srV5P-0005QO-RQ for 69343@debbugs.gnu.org; Fri, 20 Sep 2024 00:17:40 -0400 DKIM-Signature: a=rsa-sha256; b=CinEWg1/fo6rZjJ/cktAFSA03u/uDFxqCVdVIfO2NEPDx8O1ufSiMSl6RdlXNfODcwoRZEUaSQs10Kd/RBq2jRq4oxLZTHcfehyJZW/YMIREVeIUg93IfKbdVlMzYpiybXh1isqg+SVJ7dva9Jh1v8kybGVzJR7qUnKAvdMXFekcUfuOoS+8Ip3kPZn8xBBnlpPNP332ZWq0y4UVHFy5UKIgZEDh9M5b27eO8nmBFfwJNI9M3MFeunIrXht28K7JH+RI5FGFTsltH7JSGL9iZqYbsH7AY9b84rGucGa8o+FqFBKVL7D3GxGNLH5kkev2AB4s7R0bzugh1EYUotznMg==; s=purelymail3; d=lunabee.space; v=1; bh=oThLW0/lymMCVSVmKwy8oE8qI6vmgdd2ZBmkRVkECVU=; h=Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=NFzsX89HWFlnQN804A4t8wKigefZSiJUr/mnKT5eWcWlrn11xv+uP5XvMGlyVFY2cyvwRaNjMXZxaShbkyir0CehKXQzEVMOFbEudo5ahC8pIj71eA4vynT1MUvNITUsRuHvojQeJ0cX4TKL21R6Fy9+OAG9dgkcRmfZtyiFtqyik7YfwhdKj0jkCJ9H1S6VPWiD5zlV3VvjFyxwutJ4OT2pfT6LvPqdQRrS6eK2VxH6cUJlpmfeUOvaXTgqilOnQ7aBfg3ra/hkUopNauhuleXdNQGd/lO0limpzuSvG4NwOe6RtHOXeLfGZi+6PXYj9j4JFLAB6L0rUT/gDhMUkw==; s=purelymail3; 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 -100958845; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 20 Sep 2024 04:17:14 +0000 (UTC) Date: Thu, 19 Sep 2024 23:15:57 -0500 Message-ID: <26815704b0d1122f45aeaca6e30438c713cf76c1.1726805765.git.lilah@lunabee.space> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by Purelymail Content-Type: text/plain; charset=UTF-8 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: , From: Lilah Tascheter via Guix-patches Reply-To: Lilah Tascheter Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.41 X-Spam-Score: -3.41 X-Migadu-Queue-Id: 7B4C5362F6 X-Migadu-Scanner: mx10.migadu.com X-TUID: Pp9EavDN5Xb2 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))))) =20 -(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"))) =20 @@ -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) --=20 2.45.2