Skip to main content

Russian work calendar

Project description

Russian work calendar

Description

Simple library for checking current day as a holiday or weekend and current time as a working time or not.

Setup

pip install work_calendar_ru

Import package

from work_calendar_ru import WCR

Using package

wcr = WCR(start_hour=9, start_minutes=0, end_hour=19, end_minutes=30)

Where start_hour and start_minutes is a time of the start of working day.

Therefore end_hour and end_minutes is a time of the end of working day.

  • Work time now wcr.is_work_time()
  • Holiday today wcr.is_holiday()
  • Work day today wcr.is_work_day()
  • Short work day today wcr.is_short_work_day()
  • Work weekend day today wcr.is_work_weekend()
  • Weekend day today wcr.is_weekend()

License

MIT license

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for work-calendar-ru, version 1.1.2
Filename, size File type Python version Upload date Hashes
Filename, size work_calendar_ru-1.1.2-py3-none-any.whl (4.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size work_calendar_ru-1.1.2.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page