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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file rtnf-1.0.0.tar.gz.

File metadata

  • Download URL: rtnf-1.0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for rtnf-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d756b6d4651508f25ea6551bd726e6701cd2a0ba9d40c8e84cae830b491d350d
MD5 2628470b8e3dba67467a6880fbf8f358
BLAKE2b-256 c08dc119d95d6b91f4ed13f3a07d1271a80c4c6bf6485e6291b239ccf44d27ab

See more details on using hashes here.

File details

Details for the file rtnf-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: rtnf-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for rtnf-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 17214f44d6647deb9412fe21e859e0069f23860f1dc931dcf96f4922fb714530
MD5 5ab611f3e0f80ab9a2755bcf07c323f6
BLAKE2b-256 3500b6c581763242d338f5200ad0b70996c0915541812a5cb946d346a17a87ea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page