Find current date and time
Project description
DateTime
DateTime is Python package that contains functions to get the current date and time.
Installation and updating
Use the package manager pip 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:
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dorsa_datetime-1.0.1.tar.gz
(6.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dorsa_datetime-1.0.1.tar.gz.
File metadata
- Download URL: dorsa_datetime-1.0.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77ae4d7f475869f4151051e2b9c2af075514d2678eb70352a41213e961d15c37
|
|
| MD5 |
d854e0e4642919162c627170b145751a
|
|
| BLAKE2b-256 |
52563f1a64b497ef9c24d5196a2f7933efd5f6b9c613d0ff0de787ba7e262b8d
|
File details
Details for the file dorsa_datetime-1.0.1-py3-none-any.whl.
File metadata
- Download URL: dorsa_datetime-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23c44ca2caf9f86e0c50eb801df0e2109c35293759359c5cadbd1c0ecb072d3c
|
|
| MD5 |
20afee76cfe42eeef725842fa125624f
|
|
| BLAKE2b-256 |
8c86684f33034178482cf83e814395b5aa044af931f1f74691f1d1f6d2c3fa8c
|