|
From: | Max Nikulin |
Subject: | Re: ascii-timestamps like 31.12.2021 to iso(org) format <2020-12-31> and back |
Date: | Tue, 4 Jan 2022 17:00:55 +0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 |
On 31/12/2021 20:21, Uwe Brauer wrote:
Does anybody know about a function that would convert between date format like 31.12.2021 to <2020-12-31> and back?
Uwe, I suggest you to create a feature request at https://debbugs.gnu.org for emacs to add a function similar to strptime that can parse date-time string accordingly to given format, see info "(libc) Low-Level Time String Parsing" https://www.gnu.org/software/libc/manual/html_node/Low_002dLevel-Time-String-Parsing.html
Actually, I suppose, you need a function that parses date accordingly to current locale. It can be added to the feature request as well (and Eli will say that since Emacs is a multilingual editor, there is no well defined "current locale").
[Prev in Thread] | Current Thread | [Next in Thread] |