4

I take a lot of different MOOC and each class declare own deadline relative to some time zone.

Are there any Emacs mode that show date/time in buffer for several selected time zones in same time?

I expect that mode should understand usual time zone names like UTC+2, EET. See https://en.wikipedia.org/wiki/List_of_time_zone_abbreviations

Also mode should display time in different formats (ISO and American AM/PM). I miss one deadline on half hour just because I didn't know what is 12:59 AM (I think it should be at noon but actually it on deep night).

2

I start typing different keywords in M-x and see completion to:

display-time-world

That is mostly what I look for:

display-time-world is an interactive autoloaded compiled Lisp function in
`time.el'.

(display-time-world)

Enable updating display of times in various time zones.
`display-time-world-list' specifies the zones.
To turn off the world time display, go to that window and type `q'.

Unfortunately display-time-world-list is an alist (TIMEZONE LABEL) and TIMEZONE should be in a format supported by your system.

There is timezone-world-timezones. Docs for that variable correctly states that TZ abbreviations are ambiguous (same abbreviation was used for different offsets).

With:

(mapc (lambda (el) (add-to-list 'display-time-world-list el))
      '(("EET" "EET")
        ("PST" "PST")))

I have first part of requested. Unfortunately %p formater (for AM/PM) always empty.

1

I guess you are looking for display-time-world-time-format. My setting is:

(setq display-time-world-time-format "%Z\t%a %d %b %R")

And the output of display-time-world is some like this:

Sydney    AEST  Fri 28 Jul 20:27

That's 24-hour format

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.