python-deylami-calendar
Install
pip install deylami-calendar
Usage
Get current datetime in deylami
from deylami_calendar import DeylamiDatetime
print(DeylamiDatetime.now())
Convert Gregorian datetime to Deylami
from datetime import datetime
from deylami_calendar import DeylamiDatetime
gregorian_datetime = datetime(2018, 2, 1)
deylami_datetime = DeylamiDatetime(gregorian_datetime)
Convert Deylami to Gregorian datetime
from deylami_calendar import DeylamiDatetime
deylami_datetime = DeylamiDatetime(1591, 6, 28)
gregorian_datetime = deylami_datetime.to_datetime()
Read attributes
from deylami_calendar import DeylamiDatetime
d = DeylamiDatetime().now()
print(
d.year,
d.month,
d.day,
d.hour,
d.minute,
d.second
)
Set time-zone
import pytz
from deylami_calendar import DeylamiDatetime
d = DeylamiDatetime(tzinfo=pytz.timezone('Asia/Tehran')).now()
print(d)
Credits
Metadata
Release files for deylami-calendar 0.1.3
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 |
|---|---|---|---|---|
| deylami_calendar-0.1.3.tar.gz | 5.4 kB | Without provenance | Details for deylami_calendar-0.1.3.tar.gz |
Release files / deylami_calendar-0.1.3.tar.gz
| Download URL | deylami_calendar-0.1.3.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8ed47933de0d31a3335cfbe7d9c248fe10b7d12ffdaeb8fdd2d16e7e466b9c0
|
|
BLAKE2b-256 checksum How to use checksums |
23ae88e65a785aa3888cb97da46c478580dd5e5d3d8303e0b9b160d050b66170
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
|
Security for deylami-calendar 0.1.3
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.