Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sliding time window #32

Closed
dalanmiller opened this issue Oct 23, 2022 · 4 comments
Closed

Sliding time window #32

dalanmiller opened this issue Oct 23, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@dalanmiller
Copy link

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
Copy link
Owner

oz commented Oct 24, 2022

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. 👍🏻

@oz oz added the enhancement New feature or request label Oct 24, 2022
oz added a commit that referenced this issue Oct 31, 2022
This changes the current date when the cursor is moved before or past
midnight:

 - At 0h,  going left changes the current day by -1
 - At 23h, going right changes the current day by +1.

See #32 (#32)
@oz oz self-assigned this Oct 31, 2022
@decentral1se
Copy link

decentral1se commented Jan 16, 2023

Yeh this would be amazing ❤️

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
Copy link

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 🙃

@oz
Copy link
Owner

oz commented Jan 16, 2023

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! 😄🙌🏻

@oz oz closed this as completed Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants