Get local datetime from multiple timezones!
Project description
Timezone CLI
Get local datetime from multiple timezones.
All datetimes you care for, at a glance.
Usage
Installation
$ pip3 install timezones-cli
NOTE: List of country codes or timezone names :earth_asia:
Search for local date time
$ tz search "us"
Demo
Search based on timezone abbreviations
$ tz get "pst"
$ tz get "ist"
$ tz get "est"
$ tz get "cst"
Demo
Add timezones
Timezones added to the config file are treated as the default timezones which is triggered by the tz show
command.
file is stored at ~/.tz-cli
$ tz add "Asia/Kathmandu"
Demo
Remove timezones
There are two ways for removing timezones from the config file. Using the --interactive
mode and passing the the --name
flag.
$ tz remove -i
$ tz remove --name "Asia/Kathmandu"
Demo
Show local datetime of all saved timezones
$ tz show
Demo
Select a single timezone from defaults
$ tz select
Demo
Get UTC time
Get UTC time based on current system time.
tz utc --help
$ tz utc
Get UTC time based on specified time and timezone.
$ tz utc <time> <timezone>
$ tz utc "11:45PM" "Asia/Kathmandu"
Demo
Contributing
For guidance on setting up a development environment and how to make a contribution to timezones-cli
, see the contributing guidelines.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for timezones_cli-0.2.1b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8b7de041a6aeed7f6ba92b5c460710785e5a6ff5fcc0b5c583c1f2f8f4fb764 |
|
MD5 | 59315cf982272839d166b45caf265c12 |
|
BLAKE2b-256 | 962b6637c607f2fd25a19edf2cd524c21a519c8ffe93ffc7618093eb9f55bf01 |