Skip to content

Return converted times from convert_time instead of printing#66

Merged
bbelderbos merged 3 commits intoPyBites-Open-Source:mainfrom
Laksh0p:patch-1
Feb 9, 2026
Merged

Return converted times from convert_time instead of printing#66
bbelderbos merged 3 commits intoPyBites-Open-Source:mainfrom
Laksh0p:patch-1

Conversation

@Laksh0p
Copy link
Contributor

@Laksh0p Laksh0p commented Feb 5, 2026

This PR updates convert_time to return a list of (timezone, formatted_time)
tuples instead of printing directly.
The printing logic has been moved to the CLI (main) so convert_time
can be reused from other modules, as discussed.

Fixes #43

Laksh0p and others added 3 commits February 5, 2026 16:18
Refactor WorldClock to collect results in a list and print them after conversion.
Change return type from None to list of tuples.
Copy link
Contributor Author

@Laksh0p Laksh0p left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix return type hint for convert_time

@bbelderbos bbelderbos merged commit fc5623c into PyBites-Open-Source:main Feb 9, 2026
1 check passed
@bbelderbos
Copy link
Collaborator

Nice, thanks.

@bbelderbos
Copy link
Collaborator

Thanks again for picking this up. Do you have time to look at the testing a bit as well please?

I got a notification CI/CD pipeline fails atm:
https://github.com/PyBites-Open-Source/pybites-tools/actions/runs/21824345734/job/62965283259

Thanks,
Bob

@Laksh0p
Copy link
Contributor Author

Laksh0p commented Feb 10, 2026 via email

@bbelderbos
Copy link
Collaborator

No rush at all on this, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Have convert_time return the result instead of printing it

2 participants