https://github.com/treyhunner/strptime-cli
CLI version of https://pym.dev/strptime
https://github.com/treyhunner/strptime-cli
Last synced: 7 months ago
JSON representation
CLI version of https://pym.dev/strptime
- Host: GitHub
- URL: https://github.com/treyhunner/strptime-cli
- Owner: treyhunner
- Created: 2024-08-07T00:43:35.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-08-07T00:45:02.000Z (11 months ago)
- Last Synced: 2024-10-08T18:48:00.611Z (8 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# strptime
[](https://pypi.org/project/strptime-cli)
[](https://pypi.org/project/strptime-cli)## Installation
```console
pipx install strptime-cli
```## Usage
Run `strptime` with a date string to see the format string you would need to pass to `datetime.datetime.strptime` to parse the date:
```console
$ strptime "2030-01-24 05:45"
%Y-%m-%d %H:%M
```## Testing
```console
$ pip install pytest
$ python tests.py
```## License
This package is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.