dorsa-datetime-1.0.1
توضیحات
Find current date and time
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dorsa-datetime-1.0.1 |
| نام | dorsa-datetime |
| نسخه کتابخانه | 1.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Dorsa-co |
| ایمیل نویسنده | info@dorsa-co.ir |
| آدرس صفحه اصلی | https://github.com/DORSA-co/modules/tree/main/DORSA_DateTime |
| آدرس اینترنتی | https://pypi.org/project/dorsa-datetime/ |
| مجوز | Apache License 2.0 |
# DateTime
DateTime is Python package that contains functions to get the current date and time.
## Installation and updating
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install package.
## Usage
Features:
- datetime_funcs.get_date --> retrns current date, wheter in shamsi or miladi
- datetime_funcs.get_time --> returns current time
- datetime_funcs.get_datetime --> returns both current date and time in wheater shamsi or miladi format
- datetime_funcs.get_days_per_month --> returns number of days for a given month
#### Demo of the features:
```python
from datetime_funcs import get_date
from datetime_funcs import get_time
from datetime_funcs import get_datetime
from datetime_funcs import get_days_per_month
print(get_date(persian=True, folder_path=True))
print(get_time(folder_path=False))
print(get_datetime(persian=False, folder_path=False))
print(get_days_per_month(month=6, persian=True))
```
## License
[Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/)
نیازمندی
| مقدار | نام |
|---|---|
| - | persiantools |
نحوه نصب
نصب پکیج whl dorsa-datetime-1.0.1:
pip install dorsa-datetime-1.0.1.whl
نصب پکیج tar.gz dorsa-datetime-1.0.1:
pip install dorsa-datetime-1.0.1.tar.gz