A simple converter from Oracle date/time masks to strftime format
Project description
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
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
oramask-0.2.3.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file oramask-0.2.3.tar.gz
.
File metadata
- Download URL: oramask-0.2.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f92ec77781a19aab99b11fea322dd813faa5f6f6723e8e5a0ce18a6f1664ca5 |
|
MD5 | 5ca498737e197d184b4d92bae4dee596 |
|
BLAKE2b-256 | 37b9c435eff92656581d388f6925f407538ec8fb015609b6ff39b9a7cfdebc7e |
File details
Details for the file oramask-0.2.3-py2.py3-none-any.whl
.
File metadata
- Download URL: oramask-0.2.3-py2.py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec93ff9eccc743ad98866ce0e65d30dedf4eb17bcfe62534a65666fab558be46 |
|
MD5 | e834ea3a3235a4773bf8fd0048154e57 |
|
BLAKE2b-256 | f4153073603629bbafd040d66c91230fcfa6a37c297ad4c78ecf2154bbb75796 |