oz / tz

🌐 A time zone helper
GNU General Public License v3.0
851 stars 33 forks source link

Sliding time window #32

Closed dalanmiller closed 1 year ago

dalanmiller commented 2 years ago

I want to be able to use this for choosing appropriate hours of the day between cities.

The site I use most for this is timeanddate.com

E.g. https://www.timeanddate.com/worldclock/meetingtime.html?iso=20221023&p1=446&p2=4

In some cases for the current day, there isn't sufficient overlap in working hours to schedule a meeting time, so I want to advance to the next 24 hours of overlap.

When moving the cursor to the right, it currently just winds back around to the beginning of the current 24 hour window, I propose that it now advances and redraws or advances the window forward in time.

oz commented 2 years ago

Hi Dalan!

Thanks for suggesting that. I do like the idea!

I don't have a lot of time to work on tz these days, but I'll definitely look into it. 👍🏻

decentral1se commented 1 year ago

Yeh this would be amazing :heart:

Perhaps overlaps with the idea of "heatmapping" across timezones? e.g.

TZ_IDEAL="09:00,17:00"

Then you could see if your heatmapped hours overlap and then you have a suitable time?

Could take a stab at this if someone has an idea about the implementation?

decentral1se commented 1 year ago

Would be cool if tz could track forwards from local hours until it find an ideal match also? So, you could get the next ideal hour for a meeting across the timezones? Perhaps also filtering across various timezones in the case of meeting with on a specific few people? This could be mad feature creep but would be incredible :upside_down_face:

oz commented 1 year ago

I agree that it would be nice. 😄

I think there are several features here:

  1. change the date forward, or backward, as the cursor reaches the edges of the screen (already in v0.6.2 ✔️) ; and
  2. step forward (and backward?) until a condition is satisfied: like work schedules overlapping 🆕 ; and maybe
  3. filtering zones by name or label (from a running program?) 🆕.

As I understand it, the first of this list was the scope of this issue, and I forgot to close it. I'll fix that now. 😅

If you've got the time and interest for any of the other two, you're very welcome to file PRs! 😄🙌🏻