Metadata-Version: 2.1
Name: past-date2word
Version: 0.0.0
Summary: past_date2word is library helps you to convert the past date to text
Home-page: UNKNOWN
Author: Awiteb
Author-email: Awiteb@hotmail.com
License: UNKNOWN
Description: 
        
        
        # past_date2word
        
        
        **past_date2word is library helps you to convert the past date to text**
        
        ![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)
        
        [Requirements](#Requirements)
        •
        [Installation](#Installation)
        •
        [Examples](#Examples)
        •
        [License](#License)
        
        ***
        ## Requirements
        
        * **[python3.8](https://www.python.org/downloads/) +**
        * **[git](https://git-scm.com/)**
        * **[pip3](https://pip.pypa.io/en/stable/installation/)**
        
        ***
        
        ## Installation
        
        Use [PyPi](https://pypi.org) to install past_date2word.
        
        ```bash
        pip3 install past_date2word
        ```
        
        ***
        ## Example
        
        ```python
        from past_date2word import past_date2word
        from datetime import datetime, timedelta
        
        # Less than one second of time
        date = datetime.now() - timedelta(seconds=1)
        print(past_date2word(date)) # "1 second ago"
        
        # Less than 23 seconds of time
        date = datetime.now() - timedelta(seconds=23)
        print(past_date2word(date)) # "23 seconds ago"
        
        # Less than 1 week and 1 day of time
        date = datetime.now() - timedelta(weeks=1, days=1)
        print(past_date2word(date)) #"1 week and 1 day ago"
        
        # Less than 2 weeks and 4 days of time
        date = datetime.now() - timedelta(weeks=2, days=4)
        print(past_date2word(date)) #"2 weeks and 4 days ago"
        
        # And More
        
        ```
        ***
        ## License
        
        [GPLv3](https://www.gnu.org/licenses/gpl-3.0.html)
        
Keywords: date to text,date to word,to word,to text
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
