help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Elisp - Function returning a sequence of times


From: Michael Heerdegen
Subject: Re: Elisp - Function returning a sequence of times
Date: Wed, 16 Dec 2020 22:54:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Jean Louis <bugs@gnu.support> writes:

> (time-add A B) 

> (make-decoded-time :hour 10 :minute 20) => (nil 20 10 nil nil nil nil nil nil)
>
> This adds 360 seconds to current-time:
> (time-add (current-time) 360)

BTW, this also works:

| (format-time-string "%Mm %Ss" (seconds-to-time 150)) ==> "02m 30s"

i.e. it's possible to convert a number of seconds to a timestamp
(string).

Michael.




reply via email to

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