unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* alias time-to-seconds to float-time
@ 2009-08-27  4:33 Nathaniel Flath
  2009-09-02  3:32 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Nathaniel Flath @ 2009-08-27  4:33 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 658 bytes --]

From the time-to-seconds doc-string:
"Convert time value TIME to a floating point number.  You can use
`float-time' instead."
Looking at both functions, there doesn't seem to be any difference other
than float-time being implemented in C.  Should time-to-seconds just be
aliased to float-time?

Patch to time-date.el:
< ;;;###autoload
< (defun time-to-seconds (time)
<   "Convert time value TIME to a floating point number.
< You can use `float-time' instead."
<   (with-decoded-time-value ((high low micro time))
<     (+ (* 1.0 high 65536)
<        low
<        (/ micro 1000000.0))))
---
> (defalias 'time-to-seconds 'float-time)

Thanks,
Nathaniel Flath

[-- Attachment #2: Type: text/html, Size: 785 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: alias time-to-seconds to float-time
  2009-08-27  4:33 alias time-to-seconds to float-time Nathaniel Flath
@ 2009-09-02  3:32 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2009-09-02  3:32 UTC (permalink / raw)
  To: Nathaniel Flath; +Cc: emacs-devel

Nathaniel Flath wrote:

> Should time-to-seconds just be aliased to float-time?

I installed something along these lines.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-02  3:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-27  4:33 alias time-to-seconds to float-time Nathaniel Flath
2009-09-02  3:32 ` Glenn Morris

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).