A simple CLI for generating times
Project description
Timey-wimey
A simple CLI tool to generate dates from plain English.
Usage
You can pass in a string using natural language and it'll parse it.
❯ timey-wimey "two hours ago utc"
2023-05-19T00:13:27.866775+00:00
If you want a range of dates you can use the --to
flag to get it. You use the --interval
flag to set the
interval it increments by. The interval should be in the format: integer unit
so like: 3 days
or 1 hour
.
❯ timey-wimey "two hours ago utc" --to "three hours utc" --interval "30 minutes"
2023-05-19T00:15:30.469480+00:00
2023-05-19T00:15:30.469480+00:00
2023-05-18T23:45:30.469480+00:00
Instal
pipx install timey-wimey
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
timey_wimey-0.1.1.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for timey_wimey-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb334a8e2f2477e63cdcdc8f80a5ea637e974f24d6d6856fa724fb2011afe0b8 |
|
MD5 | c28e18d32865d985c53195c7c1a1a439 |
|
BLAKE2b-256 | 702cb36a1597704588932dccee38d071f6eef22654021514a153aed9972fcccf |