Questions tagged [format-time-string]
The format-time-string tag has no usage guidance.
5
questions
0
votes
1
answer
18
views
Pass future date to format-time-string
I want to be able to evaluate something like (format-time-string "%A"), but have it return tomorrow's date instead of today's (or next week's, etc.)
0
votes
1
answer
26
views
Return a time zone string from a function
Is this how I can return a time zone string from a function?
(defun timezone (ptz)
"Gets the Posix Timezone String for major locations."
(cond
((equal ptz "Alaska")
...
2
votes
1
answer
390
views
How to compare date strings?
I have a LaTeX package declared with a date:
\usepackage{foo}[=2021-04-01]
and I need to check if this date is before or after "2021-03-01".
Is there a way to compare dates, like (if (< ...
2
votes
2
answers
288
views
Inserting timestamp in mini buffer in Emacs
I keep on saving various org files in their respective folders using Filename as YYYY-MM-DD.org files . So I ended up typing C-x C-w 2020-10-06.org at least thirty times today. Can this process be ...
3
votes
2
answers
323
views
Check whether a string is a date in a specific format, e.g. "%Y-%m-%d"
I have a string and would like to check whether it contains a date in a given date format, e.g. "%Y-%m-%d", with format as for format-time-string. This is for a package and users can configure the ...