Worldtimebuddy
Get current time for all possible timezone using CLI (exclusively for developers)
Install / Use
/learn @sPredictorX1708/WorldtimebuddyREADME
worldtimebuddy
Get current time for all possible timezone using CLI (exclusively for developers)
Version - 0.1.3
Usage: worldtimebuddy [OPTIONS]
Display current time for all timezones, major timezones, or a specific
timezone.
Options:
--format TEXT DateTime format string
--major Show only major timezones
-tz, --timezone TEXT Show time for a specific timezone
--list List all available timezones
--delta TEXT Add or subtract time from a particular timezone
--help Show this message and exit.
Installation (PyPI):
pip3 install worldtimebuddy
Installation (Development):
- Clone the repository locally
git clone https://github.com/dubesar/worldtimebuddy.git
cd worldtimebuddy
- Run the following code to install dependencies and worldtimebuddy
pip install -r requirements.txt
python3 setup.py build
python3 setup.py install
Usage:
- Get all the timezones
> worldtimebuddy
Africa/Abidjan 2024-10-06 13:49:11
Africa/Accra 2024-10-06 13:49:11
....
- Get all timezone in particular format
> worldtimebuddy --format '%A, %B %d, %Y %I:%M %p %Z'
Africa/Abidjan Sunday, October 06, 2024 01:49 PM GMT
Africa/Accra Sunday, October 06, 2024 01:49 PM GMT
Africa/Addis_Ababa Sunday, October 06, 2024 04:49 PM EAT
...
- Get major timezones
Currenlty only IST/PST/PDT/UTC by default. But user can set major timezones in their environment with name MAJOR_TIMEZONES, this tool will pick up those as the major
versions.
> export MAJOR_TIMEZONES=["UTC","Asia/Kolkata"]
> worldtimebuddy --major
UTC 2024-10-06 13:50:26
PDT 2024-10-06 06:50:26
##Without the environment variable
> worldtimebuddy --major
UTC 2024-10-06 13:50:26
PDT 2024-10-06 06:50:26
Asia/Kolkata 2024-10-06 19:20:26
- Listing all timezones
> worldtimebuddy --list
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
...
- Getting a particular timezone
> worldtimebuddy --timezone UTC
UTC 2024-10-06 19:33:35
> worldtimebuddy --timezone JST
Asia/Tokyo 2024-10-07 04:33:35
...
- Getting a difference of time from a particular timezone <br> (supported time formats: +/- min, hr, day)
> worldtimebuddy --timezone UTC --delta +2hr
UTC 2024-10-06 20:43:35
...
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
