From: "Davis Herring" <herring@lanl.gov>
To: "Glenn Morris" <rgm@gnu.org>
Cc: Andreas Schwab <schwab@linux-m68k.org>,
Lennart Borgman <lennart.borgman@gmail.com>,
Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: 50 seconds is 1 hour?
Date: Tue, 1 Dec 2009 09:38:32 -0800 (PST) [thread overview]
Message-ID: <58759.130.55.118.19.1259689112.squirrel@webmail.lanl.gov> (raw)
In-Reply-To: <oxws16fvj2.fsf@fencepost.gnu.org>
>> 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.
next prev parent reply other threads:[~2009-12-01 17:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-01 15:14 50 seconds is 1 hour? Lennart Borgman
2009-12-01 15:25 ` Andreas Schwab
2009-12-01 15:28 ` Lennart Borgman
2009-12-01 15:42 ` Andreas Schwab
2009-12-01 15:44 ` Lennart Borgman
2009-12-01 17:24 ` Davis Herring
2009-12-01 17:34 ` Glenn Morris
2009-12-01 17:37 ` Lennart Borgman
2009-12-01 17:38 ` Davis Herring [this message]
2009-12-01 17:34 ` Lennart Borgman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=58759.130.55.118.19.1259689112.squirrel@webmail.lanl.gov \
--to=herring@lanl.gov \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman@gmail.com \
--cc=rgm@gnu.org \
--cc=schwab@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).