Royal Thai Navy string format manipulation tools
Project description
RTNF (Royal Thai Navy String Format)
RTNF is a Python package that provides functions to convert datetime objects to the datetime and time formats used by the Royal Thai Navy.
Installation
You can install RTNF using pip:
pip install rtnf
Usage
from datetime import datetime
from rtnf import to_rnt_date, to_rnt_time
# Convert datetime to Royal Thai Navy date format
current_datetime = datetime.now()
rnt_date = to_rnt_date(current_datetime)
print(rnt_date) # Output: DDMMYYYY
# Convert datetime to Royal Thai Navy time format
current_datetime = datetime.now()
rnt_time = to_rnt_time(current_datetime)
print(rnt_time) # Output: HHMM
Contributing
Contributions to RTNF are welcome! If you find any issues or have suggestions for improvement, please create an issue or submit a pull request on the GitHub repository.
License
RTNF is licensed 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
rtnf-1.0.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
rtnf-1.0.0-py3-none-any.whl
(3.2 kB
view hashes)