Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1680489ybg; Thu, 4 Jun 2020 16:31:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzofaxLJjMraJ4oVC/KzTHMHgqr3WJ74VxnoeCHbxqMSyPTMKHa8EGKPh45pBYp31p7FNZi X-Received: by 2002:a50:be8f:: with SMTP id b15mr6434402edk.182.1591313484088; Thu, 04 Jun 2020 16:31:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591313484; cv=none; d=google.com; s=arc-20160816; b=a3o8PRkYDFXGeTm8/LVnGWm3vQCRD+x9tgucLhmk0gzTpJCSz1jKpFJELCW/0kDdtm /GUSPi61TEppUF8pXXpiXurcmb2FO0C8sN5X1aT3nlL2sumd7dBB0gMq12Lv4dvLBJFE +X0dneBS3M65ca8as7FtMEDx2hduVrYLduhI1trxyErQxVYs7EH6VGKVHBMapdXzUhM0 xjLgRGDfVgzh/9blN4kE2MysNrEGF/Z2LSDfb4cHO6WLZOod1rhI3xgeacL6nsL58Z7K db5b0QsYpaPJRqu3NXt2Uih/17im1iDOxdBFQ8imHeXOK8Yd3tyHPsyD8ErOFcaDtZwa Pv2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=q3MC2FFVfqRFnY/t4c6lcCVH+ow63Y1vpfSVWqh2e5s=; b=wYb9Fl20Xkm9WYXy7SIOT+CSTWCA+bs4+f9THeQGQy0LUmmopbkQiPJ6Lnx2wBpXtU bV5Vq3VnHBIDXAfofX9s4+jYid1KLbi1P5ZeFYdFxv4NJ63c/NgOJs1Hp0YGodic6BjF yuPoIZGY7sTzLfVloaJrNJYbzLgVlYp86xcXrEWw7DQPK2Kf/Mz//2njQL4MGHOooWnC kxI0pBtbepGagbZaX39wKjlJGe0+rz0+MdaXMG0geFmFXagz8yXxhymyjwk7KbLCSbmm tcr/CBgEmOXV7syIYaxytRDV/FrNjO6Lef+jO/Waj9uj75GZ7HVCY/M3hlXm/sU0IZ+F Vzug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=H5pqIqPM; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d16si2413498ejp.131.2020.06.04.16.30.45; Thu, 04 Jun 2020 16:31:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=H5pqIqPM; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725930AbgFDX1U (ORCPT + 99 others); Thu, 4 Jun 2020 19:27:20 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:45530 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725863AbgFDX1T (ORCPT ); Thu, 4 Jun 2020 19:27:19 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 054NMcd2105592; Thu, 4 Jun 2020 23:27:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2020-01-29; bh=q3MC2FFVfqRFnY/t4c6lcCVH+ow63Y1vpfSVWqh2e5s=; b=H5pqIqPMYSAeys2pFVjbhkfkSXJPAvmDt3p1Pw1Nw/3YLTqgwi/C0rfPW3KE0+XQYmoz 3w8bJJM6wonn02e+mXwpYN3sFYP5ziNDTUwVzBFhPNTe2j/cuoAkJO3JiNFkbkEjV4Rw SXU2ZnZWigxBjvsTD/lGEDzweUkY2w2dj1mYX4a+3DGUzFrt9KrDHRAhS8QXhO2TWpVq iFp5IzIu7dyYvjXUTlmDATfYsYa5ryvHPQ9bDzJpdPd3M66C2nDwmg5oB/vOZt++G/rG NJ49esLczW/6Jgj9lN4kgfAGrFXxoFnd42AbwhVKlBpm1ZsIqWbjslB9M5YoBAmw0FkQ xQ== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2120.oracle.com with ESMTP id 31f91dr9d4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 04 Jun 2020 23:27:16 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 054NO8vX050011; Thu, 4 Jun 2020 23:27:15 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3020.oracle.com with ESMTP id 31f926ay5g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jun 2020 23:27:15 +0000 Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 054NRECD012510; Thu, 4 Jun 2020 23:27:14 GMT Received: from anon-dhcp-153.1015granger.net (/68.61.232.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 04 Jun 2020 16:27:13 -0700 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Subject: Re: [PATCH v2] mountstats: Adding 'Day:Hour:Min:Sec' format along with 'age' to "mountstats --nfs" for ease of understanding. From: Chuck Lever In-Reply-To: Date: Thu, 4 Jun 2020 19:27:12 -0400 Cc: Kenneth Dsouza , Linux NFS Mailing List , Steve Dickson , smayhew@redhat.com Content-Transfer-Encoding: quoted-printable Message-Id: <2492F305-1173-4730-A4B2-EDAA4BE208A8@oracle.com> References: <20200604175221.GA157967@fedora.rsable.com> <04942C45-9C31-424E-B5A1-C83553F786CE@oracle.com> <3A17F2AE-CFCA-46B9-8779-060FCCB911AF@oracle.com> To: Rohan Sable X-Mailer: Apple Mail (2.3445.104.14) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9642 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 mlxlogscore=999 bulkscore=0 suspectscore=0 adultscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006040162 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9642 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 bulkscore=0 clxscore=1015 cotscore=-2147483648 malwarescore=0 adultscore=0 priorityscore=1501 suspectscore=0 phishscore=0 spamscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006040162 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org > On Jun 4, 2020, at 4:12 PM, Rohan Sable wrote: >=20 > >> For pretty-printing the mount point's age, you probably don't need > >> to display the raw delta seconds value. >=20 > Yes, I can drop that. >=20 > >> Just wondering if there's a Python module that can do this for us? >=20 > I was not exactly sure if I could be doing that, since this is kind of = the 1st one for me. > If that's fine, using the timedate module makes it way smaller and = easier. Importing "datetime" should be fine. -- Chuck Lever