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.core 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.
Source Distribution
work_calendar_ru-1.1.0.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for work_calendar_ru-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c16069526c6d9fda11595f6bd7594c6a126653cf5644847ba368c168a334da6 |
|
MD5 | 0bb82d95cf2b1e98f470f4ae7cf01e81 |
|
BLAKE2b-256 | d7ce783980b1f0ee23f36bd40b6291fc241820b68a7f7eb62b3343d42264b97a |