help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get nicer localized date? [SOLVED]


From: Emanuel Berg
Subject: Re: How to get nicer localized date? [SOLVED]
Date: Mon, 13 Jun 2022 23:30:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>> In some countries that may pass [...]
>
> Search for "locale" in `format-time-string' ...
> 9 occurrences.

Hm ... there seems to be no locale version of the day of the
month, or year! Bummer, but we'll do without, like this

  (format-time-string "%d %A %B %Y") ; 13 Monday June 2022

But actually it is better to always write dates like this

  (format-time-string "%F") ; 2022-06-13

And with time

  (format-time-string "%F %H:%M") ; 2022-06-13 23:28

And in computer systems

  (format-time-string "%FT%T%z") ; 2022-06-13T23:28:35+0200

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]