Skip to main content

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

Apache License 2.0

Project details


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.0.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

dorsa_datetime-1.0.0-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page