Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [parse-time]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
13 votes
2 answers

Parsing formatted time string (inverse of format-time-string)

The format-time-string function takes a time argument like '(21761 64499 350937 0) and a format string like "%y-%m-%d %a %H:%M" and returns something like "15-03-12 Thu 16:49". What is the inverse ...
Matthew Piziak's user avatar
6 votes
1 answer

How to make org-mode understand alternate day/month abbreviations?

Q: How can I make org-mode understand alternate day/month abbreviations? org-mode uses the function org-read-date when entering timestamps, scheduling dates, and creating deadlines. One may enter ...
Dan's user avatar
  • 33.1k
6 votes
1 answer

How to make org-mode DWIM when it reads times in timestamps?

Q: how can I make org-mode read the time in timestamps intelligently? org-mode uses org-read-date (which in turn relies on parse-time-string) to create/modify timestamps, scheduled items, and ...
Dan's user avatar
  • 33.1k
2 votes
0 answers

How to parse calendar date or timestamp at cursor from elisp?

Is there a function to parse the text around the cursor and return the date if found? E.g., if I'm in a buffer with the cursor in the middle of this text: 2015-12-01 First day of new exercise ...
nealmcb's user avatar
  • 194
1 vote
1 answer

Emacs lisp function to count the difference between two times

I would like to write an Emacs lisp function, that I can bind to a key shortcut. It will read in the two previous time entries in the format HHMM from the buffer and spit out the difference between ...
Charley Ramm's user avatar