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

Show difference in hours #18

Open
ibLeDy opened this issue May 16, 2021 · 20 comments
Open

Show difference in hours #18

ibLeDy opened this issue May 16, 2021 · 20 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@ibLeDy
Copy link
Owner

ibLeDy commented May 16, 2021

We can show what the hour difference is, maybe where we show the --zone.

  • It can be just a number, but I think we should use gmt+
  • We can use an argument like --difference
@ibLeDy ibLeDy added the enhancement New feature or request label May 16, 2021
@ibLeDy ibLeDy added this to the v1.0.0 milestone May 16, 2021
@ibLeDy ibLeDy added the good first issue Good for newcomers label May 23, 2021
@ibLeDy ibLeDy added the hacktoberfest Hacktoberfest 2021 label Sep 25, 2021
@ibLeDy ibLeDy pinned this issue Oct 2, 2021
@26tanishabanik
Copy link

@ibLeDy I would like to take up this issue, kindly assign it to me

@26tanishabanik
Copy link

You are 10.5 hrs ahead of Mexico_City
You are 9.5 hrs ahead of New_York

Will the above statement work?

@26tanishabanik
Copy link

I made a pull request #28 , but its failing the checks, because some modules are not installing, though I have included them in the requirements-dev.txt

@ibLeDy
Copy link
Owner Author

ibLeDy commented Oct 3, 2021

You are 10.5 hrs ahead of Mexico_City You are 9.5 hrs ahead of New_York

Will the above statement work?

Hmm this feature is supposed to work like --zone, adding information to the output table (maybe in the header, or on the current hour, or somewhere where it fits)

@26tanishabanik
Copy link

You are 10.5 hrs ahead of Mexico_City You are 9.5 hrs ahead of New_York
Will the above statement work?

Hmm this feature is supposed to work like --zone, adding information to the output table (maybe in the header, or on the current hour, or somewhere where it fits)
But the tzlocal module is not installing in the test

@26tanishabanik
Copy link

26tanishabanik commented Oct 3, 2021

Only that module is failing, but the module is available for python>=3.6, can you kindly look into it?

@26tanishabanik
Copy link

You are 10.5 hrs ahead of Mexico_City You are 9.5 hrs ahead of New_York
Will the above statement work?

Hmm this feature is supposed to work like --zone, adding information to the output table (maybe in the header, or on the current hour, or somewhere where it fits)

Can it be added like, headers timezone name and ahead or behind column header?

@ibLeDy
Copy link
Owner Author

ibLeDy commented Oct 3, 2021

I made a pull request #28 , but its failing the checks, because some modules are not installing, though I have included them in the requirements-dev.txt

I will have to take a closer look, but I think it is not necessary to add a new dependency (and I also would like to avoid it if possible), as we already have all the hour info, so we just need a timedelta of some sorts to make the calculation inside ' _build_table`, for example.

@26tanishabanik
Copy link

I made a pull request #28 , but its failing the checks, because some modules are not installing, though I have included them in the requirements-dev.txt

I will have to take a closer look, but I think it is not necessary to add a new dependency (and I also would like to avoid it if possible), as we already have all the hour info, so we just need a timedelta of some sorts to make the calculation inside ' _build_table`, for example.

Yah, I tried that, it gives 00:00

@26tanishabanik
Copy link

I made a pull request #28 , but its failing the checks, because some modules are not installing, though I have included them in the requirements-dev.txt

I will have to take a closer look, but I think it is not necessary to add a new dependency (and I also would like to avoid it if possible), as we already have all the hour info, so we just need a timedelta of some sorts to make the calculation inside ' _build_table`, for example.

But I am giving it a try again

@ibLeDy
Copy link
Owner Author

ibLeDy commented Oct 3, 2021

It could be addded in the header where the timezone is displayed, to the right, but if the --zone argument is provided, the order sould be <timezone> <zone> <difference>.

I don't have time right now to create a POC but should be possible. Yes, please, try again.

@26tanishabanik
Copy link

Its done

@26tanishabanik
Copy link

Screenshot 2021-10-03 at 8 40 39 PM

Will this do?

@ibLeDy
Copy link
Owner Author

ibLeDy commented Oct 3, 2021

I would prefer if the difference would be added to the existing columns, not in new ones, and we only need the hour difference. And it should not be added to the LOCAL header.

Also, seems like you only used the --zone argument, and this feature is separate from that one, so it would be activated when using --difference. I will left some examples below showing how it would look using the different arguments.

timezone-converter tijuana --difference

image

timezone-converter tijuana --difference --zone

image

@26tanishabanik
Copy link

The feature is done

@26tanishabanik
Copy link

Screenshot 2021-10-04 at 11 06 46 AM

@26tanishabanik
Copy link

@ibLeDy Can you kindly review the PR?

@ibLeDy
Copy link
Owner Author

ibLeDy commented Oct 5, 2021

I didn't had time today but hopefully tomorrow I will be available to do it.

@ibLeDy
Copy link
Owner Author

ibLeDy commented Oct 7, 2021

I left a review in the PR, there are still some changes that we need to do :)

@ibLeDy
Copy link
Owner Author

ibLeDy commented Nov 13, 2021

Hello, @26tanishabanik. Are you still working on this?

@ibLeDy ibLeDy removed the hacktoberfest Hacktoberfest 2021 label Jul 8, 2022
@ghost ghost mentioned this issue Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants