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
Metadata
Release files for dorsa-datetime 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dorsa_datetime-1.0.1.tar.gz | 6.4 kB | Without provenance | Details for dorsa_datetime-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dorsa_datetime-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for dorsa_datetime-1.0.1-py3-none-any.whl |
Total release size: 13.2 kB
Release files / dorsa_datetime-1.0.1.tar.gz
| Download URL | dorsa_datetime-1.0.1.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77ae4d7f475869f4151051e2b9c2af075514d2678eb70352a41213e961d15c37
|
|
BLAKE2b-256 checksum How to use checksums |
52563f1a64b497ef9c24d5196a2f7933efd5f6b9c613d0ff0de787ba7e262b8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / dorsa_datetime-1.0.1-py3-none-any.whl
| Download URL | dorsa_datetime-1.0.1-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23c44ca2caf9f86e0c50eb801df0e2109c35293759359c5cadbd1c0ecb072d3c
|
|
BLAKE2b-256 checksum How to use checksums |
8c86684f33034178482cf83e814395b5aa044af931f1f74691f1d1f6d2c3fa8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for dorsa-datetime 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.