rtnf


Namertnf JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/anuwatavis/royal-thai-navy-string-format
SummaryRoyal Thai Navy string format manipulation tools
upload_time2023-05-27 06:23:03
maintainer
docs_urlNone
authoranuwataravis
requires_python>=3.8
licenseMIT
keywords rtnf royal thai navy string format
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
<img src="https://raw.githubusercontent.com/anuwatavis/royal-thai-navy-string-format/main/docs/cover.png"/>
</div>

# 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:
```bash
pip install rtnf
```

# Usage
```python
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.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/anuwatavis/royal-thai-navy-string-format",
    "name": "rtnf",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "rtnf royal thai navy string format",
    "author": "anuwataravis",
    "author_email": "anuwat.avis@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c0/8d/c119d95d6b91f4ed13f3a07d1271a80c4c6bf6485e6291b239ccf44d27ab/rtnf-1.0.0.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n<img src=\"https://raw.githubusercontent.com/anuwatavis/royal-thai-navy-string-format/main/docs/cover.png\"/>\n</div>\n\n# RTNF (Royal Thai Navy String Format)\nRTNF is a Python package that provides functions to convert datetime objects to the datetime and time formats used by the Royal Thai Navy.\n\n# Installation\nYou can install RTNF using pip:\n```bash\npip install rtnf\n```\n\n# Usage\n```python\nfrom datetime import datetime\nfrom rtnf import to_rnt_date, to_rnt_time\n\n# Convert datetime to Royal Thai Navy date format\ncurrent_datetime = datetime.now()\nrnt_date = to_rnt_date(current_datetime)\nprint(rnt_date)  # Output: DDMMYYYY\n\n# Convert datetime to Royal Thai Navy time format\ncurrent_datetime = datetime.now()\nrnt_time = to_rnt_time(current_datetime)\nprint(rnt_time)  # Output: HHMM\n```\n\n# Contributing\nContributions 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.\n\n# License\nRTNF is licensed under the MIT License.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Royal Thai Navy string format manipulation tools",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/anuwatavis/royal-thai-navy-string-format"
    },
    "split_keywords": [
        "rtnf",
        "royal",
        "thai",
        "navy",
        "string",
        "format"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3500b6c581763242d338f5200ad0b70996c0915541812a5cb946d346a17a87ea",
                "md5": "5ab611f3e0f80ab9a2755bcf07c323f6",
                "sha256": "17214f44d6647deb9412fe21e859e0069f23860f1dc931dcf96f4922fb714530"
            },
            "downloads": -1,
            "filename": "rtnf-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5ab611f3e0f80ab9a2755bcf07c323f6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3161,
            "upload_time": "2023-05-27T06:23:00",
            "upload_time_iso_8601": "2023-05-27T06:23:00.618978Z",
            "url": "https://files.pythonhosted.org/packages/35/00/b6c581763242d338f5200ad0b70996c0915541812a5cb946d346a17a87ea/rtnf-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c08dc119d95d6b91f4ed13f3a07d1271a80c4c6bf6485e6291b239ccf44d27ab",
                "md5": "2628470b8e3dba67467a6880fbf8f358",
                "sha256": "d756b6d4651508f25ea6551bd726e6701cd2a0ba9d40c8e84cae830b491d350d"
            },
            "downloads": -1,
            "filename": "rtnf-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2628470b8e3dba67467a6880fbf8f358",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 2798,
            "upload_time": "2023-05-27T06:23:03",
            "upload_time_iso_8601": "2023-05-27T06:23:03.328149Z",
            "url": "https://files.pythonhosted.org/packages/c0/8d/c119d95d6b91f4ed13f3a07d1271a80c4c6bf6485e6291b239ccf44d27ab/rtnf-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-27 06:23:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "anuwatavis",
    "github_project": "royal-thai-navy-string-format",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "rtnf"
}
        
Elapsed time: 1.10079s