emacs-devel
[Top][All Lists]
Advanced

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

Re: 50 seconds is 1 hour?


From: Davis Herring
Subject: Re: 50 seconds is 1 hour?
Date: Tue, 1 Dec 2009 09:38:32 -0800 (PST)
User-agent: SquirrelMail/1.4.8-5.7.lanl7

>> should it be able to return "5:34" and "1:00:31" for 334 and 3631
>> seconds?)
>
> (format-seconds "%h:%z%.2m:%s" 334)
> (format-seconds "%h:%z%.2m:%s" 3631)
>
> almost does this.

That's probably close enough (especially since one could strip leading 0s
afterwards if desired); I didn't know it existed.  Thanks!

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]