2

I feel like elisp (or org-mode) must have something like (days-until '2018-01-01) which would calculate the days between today and 2018-01-01. How would I go about implementing that?

Jonathan
  • 567
  • 5
  • 20
  • Here is a link to either a related or a potential duplicate thread entitled "**Counting the number of days that have passed since a certain date**": https://emacs.stackexchange.com/questions/23893/counting-the-number-of-days-that-have-passed-since-a-certain-date If your question is a duplicate,then just delete it. If it is somehow different, please try to distinguish your current question from the two alternative answers in the linked thread. – lawlist Jun 16 '17 at 01:04
  • This isn't about counting days that have passed since a certain date, but counting days to come until a certain date. – Jonathan Jun 16 '17 at 01:14
  • The distance between two points is the same, whether you start from the beginning or from the end. The difference between today looking back a day is 24 hours. The difference between yesterday and looking forward a day to today is 24 hours. – lawlist Jun 16 '17 at 01:16
  • 1
    Not sure for new year, but for Xmas it's easy, since when you use Emacs it's always Xmas. – Stefan Jun 16 '17 at 13:34

1 Answers1

4

Found it. It's org-time-stamp-to-now.

Jonathan
  • 567
  • 5
  • 20