unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, Paul Eggert <eggert@cs.ucla.edu>
Subject: Re: How to canonicalize a time object
Date: Sun, 14 Aug 2022 17:41:45 +0200	[thread overview]
Message-ID: <877d3ahlxi.fsf@gnus.org> (raw)
In-Reply-To: <jwv35eavevx.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 05 Aug 2022 12:24:41 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> What's the best way in ELisp to turn an arbitrary time value into one
> that will be as efficient as possible for `lisp_time_argument`?

I'm not quite sure I understand the question -- the `t' type for
`time-convert' is supposed to be the most efficient representation of an
arbitrary time value, but if you don't have sub-second resolution to
your time, the `integer' one is probably more efficient?

Paul would know, though -- added to the CCs.




  parent reply	other threads:[~2022-08-14 15:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-05 16:24 How to canonicalize a time object Stefan Monnier
2022-08-13 22:01 ` Stefan Monnier
2022-08-14 15:41 ` Lars Ingebrigtsen [this message]
2022-08-14 17:15   ` Stefan Monnier
2022-08-14 21:17     ` Paul Eggert

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=877d3ahlxi.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).