Re: [PATCH v2] mountstats: Adding 'Day:Hour:Min:Sec' format along with 'age' to "mountstats --nfs" for ease of understanding.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> On Jun 4, 2020, at 4:12 PM, Rohan Sable <rsable@xxxxxxxxxx> wrote:
> 
> >> For pretty-printing the mount point's age, you probably don't need
> >> to display the raw delta seconds value.
> 
> Yes, I can drop that.
> 
> >> Just wondering if there's a Python module that can do this for us?
> 
> 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







[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux