all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Time not representable
Date: Sat, 12 Mar 2011 23:05:37 -0800	[thread overview]
Message-ID: <4D7C6CC1.8080303@cs.ucla.edu> (raw)
In-Reply-To: <loom.20110312T230903-355@post.gmane.org>

Following up on this, I just now committed a change
(bzr 103643) that should fix the problems noted in this
thread for time stamp overflow.  (This may require
minor changes to Windows makefiles to capture new
dependencies, but it shouldn't break Windows builds.)

I'd also like to fix the time stamp resolution problems
by adding more information to the output of current-time
and similar functions.  For example, if the time is
2011-03-13 06:47:51.191380874 UTC, (current-time) currently
yields (19836 26775 191380), losing the bottom 3 digits.
I'd like to change it to yield (19836 26775 191380 874000)
so that no information is lost.  That is, I'd like to
extend the time stamp format to have a picoseconds count
(in addition to the current microseconds count) on hosts
that have higher-resolution time stamps.  No host currently
keeps time to picosecond resolution, but many do track
nanoseconds so the extended format will be a win.

This change would affect all functions that use these
internal time stamps, namely float-time, format-time-string,
decode-time, current-time-string, current-time-zone,
set-file-times, current-time, file-attributes,
encode-time, and visited-file-modtime.  Current-format
internal time stamps would continue to work.



  parent reply	other threads:[~2011-03-13  7:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-11 13:01 Time not representable Carsten Dominik
2011-03-11 13:19 ` Andreas Schwab
2011-03-11 17:46 ` Paul Eggert
2011-03-12 22:13   ` Carsten Dominik
2011-03-12 23:22     ` Paul Eggert
2011-03-13  7:05     ` Paul Eggert [this message]
2011-03-13 17:52       ` Eli Zaretskii
2011-03-14 16:57       ` carsten Dominik

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D7C6CC1.8080303@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-devel@gnu.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.