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: Lennart Borgman
Subject: Re: 50 seconds is 1 hour?
Date: Tue, 1 Dec 2009 16:28:42 +0100

On Tue, Dec 1, 2009 at 4:25 PM, Andreas Schwab <address@hidden> wrote:
> Lennart Borgman <address@hidden> writes:
>
>> I use (current-time) and (time-substract) to get the elapsed time. I
>> get something like elapsed=(0 51 532000).
>>
>> Then I try to use (format-time-string "%H" elapsed) and get "01".
>
> Try (format-time-string "%H" elapsed t).

Thanks, it worked.

> But format-time-string is not
> designed to format time differences, only points in time.

I am just trying to stretch it a bit...




reply via email to

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