all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Impossible to customize world clock
@ 2024-04-08 19:49 Kepa via Users list for the GNU Emacs text editor
  2024-04-08 20:45 ` tpeplt
  2024-04-09  2:36 ` Eli Zaretskii
  0 siblings, 2 replies; 16+ messages in thread
From: Kepa via Users list for the GNU Emacs text editor @ 2024-04-08 19:49 UTC (permalink / raw)
  To: help-gnu-emacs

Hi

Today I have tried to customize and use the world clock.

Funny, the default world clocks are ok, but I can't customize it to add 
new zones.


Default list and clocks:

  '(zoneinfo-style-world-list
    '(("America/Los_Angeles" "Seattle")
      ("America/New_York" "New York")
      ("Europe/London" "London")
      ("Europe/Paris" "Paris")
      ("Asia/Calcutta" "Bangalore")
      ("Asia/Tokyo" "Tokyo"))))

Seattle   lunes 08 abril 12:42 PDT
New York  lunes 08 abril 15:42 EDT
London    lunes 08 abril 20:42 BST
Paris     lunes 08 abril 21:42 CDT
Bangalore martes 09 abril 01:12 IST
Tokyo     martes 09 abril 04:42 JST


I add a new one (Europe/Berlin):

  '(zoneinfo-style-world-list
    '(("America/Los_Angeles" "Seattle")
      ("America/New_York" "New York")
      ("Europe/London" "London")
      ("Europe/Paris" "Paris")
      ("Asia/Calcutta" "Bangalore")
      ("Asia/Tokyo" "Tokyo")
      ("Europe/Berlin" "Germany"))))


The world clock doesn't change:

Seattle   lunes 08 abril 12:44 PDT
New York  lunes 08 abril 15:44 EDT
London    lunes 08 abril 20:44 BST
Paris     lunes 08 abril 21:44 CDT
Bangalore martes 09 abril 01:14 IST
Tokyo     martes 09 abril 04:44 JST


Ok, let's customize instead then the "World Clock List":

  '(world-clock-list '(("America/Los_Angeles" "Seattle")))


And world clock is wrong:

Seattle lunes 08 abril 20:48 ric
Germany lunes 08 abril 20:48 ope


OS: Windows 10

GNU Emacs 29.2 (build 2, x86_64-w64-mingw32) of 2024-01-18


^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: Impossible to customize world clock
@ 2024-04-13 12:15 Kepa via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; 16+ messages in thread
From: Kepa via Users list for the GNU Emacs text editor @ 2024-04-13 12:15 UTC (permalink / raw)
  To: Kepa via Users list for the GNU Emacs text editor

From:     Eli Zaretskii
Subject:     Re: Impossible to customize world clock
Date:     Tue, 09 Apr 2024 05:36:57 +0300

 > Emacs on MS-Windows doesn't support timezone specification of the form
 > "America/Los_Angeles", because the Windows runtime libraries don't
 > support that.  You need to use the legacy format instead, as in
 > ("PST8PDT" "Seattle").  See the doc string of legacy-style-world-list
 > for more details.

Thanks, Eli

I can see there are:

Legacy Style World List
World Clock List
Zoneinfo Style World List


The world clock list is what must be filled, using one of the two other 
formats, that would be just examples?

Best regards


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-04-13 12:15 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-08 19:49 Impossible to customize world clock Kepa via Users list for the GNU Emacs text editor
2024-04-08 20:45 ` tpeplt
2024-04-09  4:00   ` Eli Zaretskii
2024-04-09 13:46     ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-04-09 14:32       ` Eli Zaretskii
2024-04-09 15:12         ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-04-09 15:28           ` Eli Zaretskii
2024-04-09 16:52             ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-04-09 18:34               ` Eli Zaretskii
2024-04-09 18:41                 ` Emanuel Berg
2024-04-10  2:32                   ` Eli Zaretskii
2024-04-10  2:48                 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-04-10 13:53                   ` Eli Zaretskii
2024-04-09 13:52     ` tpeplt
2024-04-09  2:36 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2024-04-13 12:15 Kepa via Users list for the GNU Emacs text editor

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.