Questions tagged [format-time-string]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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.)
innocentios's user avatar
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") ...
Veak's user avatar
  • 199
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 (< ...
Onner Irotsab's user avatar
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 ...
Vaibhav's user avatar
  • 573
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 ...
tmalsburg's user avatar
  • 2,540