Skip to main content

A simple converter from Oracle date/time masks to strftime format

Project description

build status

oramask

Oramask is a simplistic converter of Oracle specific date/time masks to Python's strftime masks.

Installation

You can install the oramask by cloning the repository and running pip install:

git clone git@github.com:andzhi4/oramask
cd oramask && pip install .

or using PyPi:

python3 -m pip install oramask

Examples

Here is an example of usage:

from oramask import ora_to_sft
from datetime import datetime

now = datetime.now()
formatted = now.strftime(ora_to_sft('DD-MON-YYYY HH24:MI:SS'))
print(formatted)
# Output: 23-Feb-2023 17:51:15

Contributing

If you find a bug or have an idea for a new feature, feel free to create an issue or submit a pull request.

License

Oramask is released under the MIT License.

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

oramask-0.2.3.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

oramask-0.2.3-py2.py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 2 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