Skip to main content

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 demo of timezone cli search

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 demo of timezone cli add
---

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 demo of timezone cli remove

Show local datetime of all saved timezones

$ tz show
Demo demo of timezone cli show
---

Select a single timezone from defaults

$ tz select
Demo demo of timezone cli select

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 demo of timezone cli select

Contributing

For guidance on setting up a development environment and how to make a contribution to timezones-cli, see the contributing guidelines.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

timezones_cli-0.2.0.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

timezones_cli-0.2.0-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page