An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# strptime

[![PyPI - Version](https://img.shields.io/pypi/v/strptime-cli.svg)](https://pypi.org/project/strptime-cli)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/strptime-cli.svg)](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.