You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how to get the month out of it, with the days being "9 months, 7 days"?.
I am aware that some time library doesn't return the month as well. Worrying about its flexibility and non-absolute answers. Such is one month: 1) 28 days, 30, or 31.
any opinion on this regarding ts.el?
The text was updated successfully, but these errors were encountered:
The ambiguities you mention would make it difficult to give an accurate answer in terms of months, and accounting for various methods would be complicated, so it hasn't been implemented.
I suppose someone could port the Python relativedelta module to Elisp. If one were to do that, it would probably be best proposed as a patch to Emacs itself.
I want to write a birthday app in different languages, one of them is Elisp.
The original implementation is written in Python.
The spec is:
year-month-day
. returnN years, N months, N days
The original implementation:
Which will display: Your age: 23 years, 9 months, 7 days
Given the same spec, I try to implement it in Elisp with ts.el:
how to get the month out of it, with the days being "9 months, 7 days"?.
I am aware that some time library doesn't return the month as well. Worrying about its flexibility and non-absolute answers. Such is one month: 1) 28 days, 30, or 31.
any opinion on this regarding ts.el?
The text was updated successfully, but these errors were encountered: