Skip to content

Return converted times from convert_time instead of printing#66

Open
Laksh0p wants to merge 3 commits intoPyBites-Open-Source:mainfrom
Laksh0p:patch-1
Open

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

Conversation

@Laksh0p
Copy link

@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
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

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

1 participant