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
Search for local date time
$ tz search "us"
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.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebdcd567f669f8d95a8597892e590754361b0abc4534599fd9d72b19423ac065 |
|
MD5 | 522a8a48df0158296ccd7b37889d235b |
|
BLAKE2b-256 | d7710943064639e32b0334c6af67db5c51685ce61980df2170e30d6c4a931272 |