tzc icon indicating copy to clipboard operation
tzc copied to clipboard

Any integration planned with the emacs built-in world-clock

Open jayrajput opened this issue 3 years ago • 4 comments

Thanks for a nice package. I was looking for something like that. Btw, I am from Bengaluru as well. I work as a software developer and continuously used worldtimebuddy.com to schedule meeting across timezones.

Are there any integrations/improvement planned with the emacs inbuilt world-clock? There are two things which I can think of:

  • Use world-clock-list variable
  • Improve the wclock buffer to have keys (n,p) to see next hour or previous hour.
  • Allow date/time input using org style (similar) org-time-stamp function

jayrajput avatar Jan 22 '22 15:01 jayrajput

Hi @jayrajput, thanks for submitting this issue and nice to meet you. These suggestions are really nice and would be great to have these features in the package.

  • I see that the world-clock-list variable supports two kinds of lists zoneinfo-style-world-list and legacy-style-world-list. This package uses the first one with the difference that it uses the timezone only and not the label. Basically tzc-favourite-time-zones is equivalent to (mapcar #'car zoneinfo-style-world-list). Thus if you use zoneinfo-style-world-list and want to use that for the tzc package then you can do (setq tzc-favourite-time-zones (mapcar #'car zoneinfo-style-world-list))
  • The equivalent of wclock buffer in tzc is to call tzc-convert-current-time-to-favourite-time-zones and it seems a good suggestion to add feature to show the results for next/previous hours. I will work on this and see what could be done.
  • This is definitely doable and would be added in time I hope.

Also any contribution to add these features would be welcome.

md-arif-shaikh avatar Jan 23 '22 05:01 md-arif-shaikh

you can now use zoneinfo-style-world-list as the tzc-favourite-time-zones-alist. (setq tzc-favourite-time-zones-alist zoneinfo-style-world-list)

md-arif-shaikh avatar Jan 23 '22 07:01 md-arif-shaikh

Great. Thanks. Looking forward to the changes.

jayrajput avatar Jan 23 '22 09:01 jayrajput

Hey @jayrajput, I have now added tzc-world-clock that creates a buffer with information equivalent to wclock but with the next or previous keymap as requested. Please try and let me know if it works for you. I will look into the third one in next weekend probably.

md-arif-shaikh avatar Jan 23 '22 15:01 md-arif-shaikh