Questions tagged [format-time-string]

The tag has no usage guidance.

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

how to add "YYYY-MM-DDThh:mmTZD" format on add-log-time-format

i am trying to create change log for all files edited on emacs using add-log-time-format however, as of now, add-log-time-format provides only 2 formats: 1. ISO8601 date YYMMDD_ 2023-12-12 and 2. ...
jindam's user avatar
  • 1
0 votes
1 answer
46 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
26 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
31 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
568 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
307 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
445 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,570