Skip to content

A Python module that calculates the number of business hours between two datetimes

License

Notifications You must be signed in to change notification settings

Calabashmc/BusinessHours

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Business Hours

A Python module that calculates working time between two given datetimes. Opening and closing time and the weekend days are configurable.

There are 3 methods available:

getminutes()

Returns and integer of the number of working minutes between the two datetimes.

gethours()

Returns an integer of the number of full hours worked. calculated from the return of getminutes() divided by 60. Aways rounded down, reminder minutes are truncated by the integer conversion, if remainder minutes are required perform a modulus of getminutes().

getdays()

Returns an integrer of the number of full days worked calculated from the return of getminutes() divided by the number of available minutes in a working day.

About

A Python module that calculates the number of business hours between two datetimes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%