Skip to content

Conversation

@bakayu
Copy link
Contributor

@bakayu bakayu commented Oct 14, 2024

Added --convert flag to convert time from one timezone to another, updated README.md file accordingly
also added docstrings to functions in utils.py
closes #10

testing:

worldtimebuddy --timezone IST --convert UTC
Original time in Asia/Kolkata: 2024-10-14 12:21:22
Converted time in UTC: 2024-10-14 06:51:22
worldtimebuddy --timezone JST --convert ASIA/Kolkata
Original time in Asia/Tokyo: 2024-10-14 15:51:38
Converted time in ASIA/Kolkata: 2024-10-14 12:21:38
worldtimebuddy --timezone JST --convert bad-time-zone
Error: Unknown target timezone 'bad-time-zone'
Use 'worldtimebuddy --list' to see all available timezones

please review! @dubesar
image

bakayu added 7 commits October 6, 2024 22:53
added the delta function to the cli, moved extra functions to utils.py
added timezone conversion codes feature, see constants.py file for supported timezones
added --convert flag to convert time between timezones, updated README.md file accordingly
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.

Time Conversion feature

1 participant