Skip to main content

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


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)

Uploaded Source

Built Distribution

rtnf-1.0.0-py3-none-any.whl (3.2 kB view hashes)

Uploaded 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