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 hashes)
Built Distribution
Close
Hashes for dorsa_datetime-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23c44ca2caf9f86e0c50eb801df0e2109c35293759359c5cadbd1c0ecb072d3c |
|
MD5 | 20afee76cfe42eeef725842fa125624f |
|
BLAKE2b-256 | 8c86684f33034178482cf83e814395b5aa044af931f1f74691f1d1f6d2c3fa8c |