Metadata-Version: 2.1
Name: human-readable-time
Version: 0.1.3
Summary: A utility package for human-readable time conversion.
Home-page: https://github.com/MuGhasemi/human_readable_time
Author: Muhammad Ghasemi
Author-email: mughasemi2008@email.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/plain


                    # زمان خوانا

                    این یک تابع پایتون است که عددی غیر منفی (ثانیه) را به عنوان ورودی می‌گیرد و زمان را با 
                    فرمت خوانا (ساعت:دقیقه:ثانیه) برمی‌گرداند.

                    ## چگونه استفاده کنیم

                    1. مخزن را در دستگاه محلی خود کلون کنید.
                    2. تابع `make_readable1` یا`make_readable2` را از ماژول `human_readable_time` وارد کنید.
                    3. تابع `make_readable1` یا`make_readable2` را فراخوانی کنید و تعداد ثانیه‌ها را به عنوان آرگومان ارسال کنید.

                    مثال:

                    ```python
                    from human_readable_time import make_readable1 #OR make_readable2

                    seconds = 3661
                    result = make_readable1(seconds)
                    print(result)  # خروجی: 01:01:01
                    ```

                    ## جزئیات تابع

                    تابع `make_readable1` یا `make_readable2` ساعت، دقیقه و ثانیه را از تعداد داده شده ثانیه‌ها محاسبه کرده
                    و آن‌ها را با رشته‌ی خوانا فرمت می‌کند. این تابع از تابع `divmod()` برای محاسبه کارآمد و f-string برای
                    فرمت‌بندی خروجی با صفر اولیه استفاده می‌کند.

                    # Human Readable Time

                    This is a Python function that takes a non-negative integer representing the number of seconds and
                    returns the time in a human-readable format (HH:MM:SS).

                    ## How to Use

                    1. Clone the repository to your local machine.
                    2. Import the `make_readable1` OR `make_readable2` function from the `human_readable_time` module.
                    3. Call the `make_readable1` OR `make_readable2` function and pass the number of seconds as an argument.

                    Example:

                    ```python
                    from human_readable_time import make_readable1 #OR make_readable2

                    seconds = 3661
                    result = make_readable1(seconds)
                    print(result)  # Output: 01:01:01
                    ```

                    ## Function Details

                    The `make_readable1` OR `make_readable2` functions calculates the hours, minutes, and seconds from 
                    the given number of seconds and formats them in a human-readable string. It uses the `divmod()` 
                    function for efficient calculation and f-string for formatting the output with leading zeros.
                        

