Skip to content

You can check whether the day is working day or not super easily (including Korean Holidays). You can obtain various time or other day which based on your favor date. (Ex. Which month would be after 20days from now?)

License

Notifications You must be signed in to change notification settings

whcho888/WorkingTimePython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WorkingTimePython

You can check easily whether the day is working day or not (including Holidays).
You can also obtain various time or other day which based on your favor date. (Ex. Which month would be after 20days from now?)

Availability

Any other foreign countries' working days can use this module, if you fix array of holidays on KoreanBDay class to your own countries holidays! [and change class name :)].

This module has been tested only on python v2.7

How to use (if today is "2016, 2, 29")

  1. workingDays.py

from holidays import *
KBD.is_working_day(datetime.now())
> True
KBD.is_working_day(datetime.now(), 1)
> False
KBD.is_working_day(datetime.now(), -1)
> False
KBD.get_before_workingDate(datetime.now(), 3)
> datetime.date(2016, 2, 26)
KBD.get_xday_before_workingDate(datetime.now(), 3)
> datetime.date(2016, 2, 24)

  1. timeCalc.py

from timeCalc import *
from datetime import datetime
get_month_of_next_monday(datetime.now())
> 3
get_day_of_this_monday(datetime.now())
> 29

About

You can check whether the day is working day or not super easily (including Korean Holidays). You can obtain various time or other day which based on your favor date. (Ex. Which month would be after 20days from now?)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages