Questions tagged [format-time-string]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 views

How to set milliseconds in a timestamp created by seconds-to-time?

I have a milliseconds-since-epoch value such as 1698089051778 that I want to convert to a human readable string. I use (seconds-to-time (/ ms-since-apoch 1000)) to convert from string to timestamp and ...
Miserable Variable's user avatar
0 votes
1 answer
22 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
29 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") ...
Dilna's user avatar
  • 1
2 votes
1 answer
519 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
297 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
394 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