-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Obtaining Emacs style time lists #25
Comments
Please see
Feel free to make an issue and we can talk about them. Thanks. |
Thanks. |
I came to the conclusion that
Sorry if I missed something about why it's this way, but I think it's still correct to avoid that slot for now unless it were changed to use My other complaint, if being picky, is not producing a |
I don't object to using the What do you think? |
Anywhere that people are setting (let ((current-time-list t))
(time-convert (float-time))) ; (25947 63661 25096 178054)
(let ((current-time-list nil))
(time-convert (float-time))) ; (7132524043151968 . 4194304) Times without sub-second precision are only useful for conversion into timestamps or logical time, so my expectation is that the slot is not being used in a manner similar to champagne where fractional seconds are obtained by reading the 3rd element of Champagne was mishandling some times, but it was mostly covered up by the flexibility of The benefit of unifying the type graph and avoiding precision loss has very good karma. If there is one thing I really would want as a consumer of the library, it's smoothly inter-operating with Emacs scalar times. |
Forgive my pedantry, but there is so much jargon in this context, that it's helpful to me if we use only the official, "blessed" Emacs terms for these things, so that I know exactly what you mean. For example, there are no "scalar times" in Emacs (the word "scalar" isn't even found in the Elisp manual, even though its meaning in CS terms may apply somewhere). According to the Elisp manual section 42.5, there are "Lisp timestamps" in three forms: integer, Then there are the various arguments that various time/date-related functions accept, such as In Does that all make sense to you and seem reasonable? |
If these use structures different than what
Yep, except let's add that ts should adopt |
I want to adopt this into the guts of chamagne
Looks like we have to call
seconds-to-time
on thets-unix
result. IMOts-emacs
would tighten up the API. Did I miss something?Some more readers would also be helpful, for plugging into interactive forms to avoid using the various string conversions in
diary-lib
etc. I can maybe upstream some champagne work if you agree that these are needed, although it grows the maintenance surface, I think in a very good way.Lemme kno
The text was updated successfully, but these errors were encountered: