A command-line utility to convert timestamps between UTC and local timezones.
Project description
whenis is a command-line utility that converts timestamps between UTC and local timezones.
Installation
pip install whenis
Usage
$ whenis -h
usage: whenis [-h] [-f TIMEZONE] [-t TIMEZONE] [timestamp [timestamp ...]]
Convert timestamps between UTC and local timezones.
positional arguments:
timestamp timestamp to be converted
optional arguments:
-h, --help show this help message and exit
-f TIMEZONE, --from TIMEZONE
timezone to convert from (default: utc)
-t TIMEZONE, --to TIMEZONE
timezone to convert to (default: local)
$ whenis -f utc -t local "12/7/16 1:28:36.156 AM"
Tue 6 Dec 2016, 5:28:36 PM -08:00
$ whenis 2016-12-07 01:28:36,156
Tue 6 Dec 2016, 5:28:36 PM -08:00
$ whenis -f local -t utc 6 Dec 2016, 5:28:36 PM
Wed 7 Dec 2016, 1:28:36 AM +00:00
License
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
whenis-0.0.2.tar.gz
(1.9 kB
view details)
File details
Details for the file whenis-0.0.2.tar.gz.
File metadata
- Download URL: whenis-0.0.2.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cec71b1d880bbc4913ae75615d7fee6fe49d2c5a4d6b8bdb92443c3787b69bf8
|
|
| MD5 |
b78f86133a591964abc67f4565a86245
|
|
| BLAKE2b-256 |
3efd145420744a30331c4705b49b7e9f2e89fff72a69a445200d5d730a32ee97
|