issues Search Results · repo:seatgeek/businesstime language:Python
Filter by
13 results
(89 ms)13 results
inseatgeek/businesstime (press backspace or delete to remove)
import businesstime
bt = businesstime.BusinessTime((time(9), time(18)), (5, 6), holidays=None)
t = bt.businesstimedelta(datetime.now(), datetime.now() + timedelta(days=1, hours=-4))
#t = bt.businesstimedelta(datetime.now() ...
lcasassa
- Opened on Mar 2, 2018
- #26
When isholiday is called, the holiday generator is invoked. But the holiday generator maintains a cache, and it assumes
that future calls to isholiday will be in the future (while len(self._holidays) == ...
seantsb
- 3
- Opened on Mar 1, 2018
- #25
First of all, thank you very much for your work on this library.
I found myself slightly confused when trying to extract business hours from the timedelta result.
d1 = datetime.datetime(2017, 5, 23, ...
csoare7
- 1
- Opened on Oct 31, 2017
- #20
Everything breaks with tz-aware datetimes. It would be good to take an optional tzinfo and to cast the datetimes into
that TZ automatically.
danni
- 7
- Opened on Apr 6, 2017
- #18
pip install businesstime and python setup.py install does not install the holidays submodule.
trikosuave
- 1
- Opened on Aug 5, 2016
- #14
This piece of code returns the wrong time delta:
bt=BusinessTime()
bt.businesstimedelta(datetime(2016, 6, 17, 18), datetime(2016, 6, 20, 18))
datetime.timedelta(0)
The start time is after hours ...
brox
- 2
- Opened on Jun 18, 2016
- #13
Hi, i think could be a problem in the Lead-years
https://github.com/seatgeek/businesstime/blob/master/businesstime/holidays/init.py#L9
bug
ehooo
- 1
- Opened on Feb 9, 2016
- #12
From opm.gov:
Federal law (5 U.S.C. 6103) establishes the following public holidays for Federal employees. Please note that most
Federal employees work on a Monday through Friday schedule. For these employees, ...
bug
erwaller
- Opened on Jun 23, 2015
- #8
start = datetime(2015,2,23,hour=16, minute=0)
end = datetime(2015,2,24,hour=14, minute=20)
bt = BusinessTime(weekends=(SAT, SUN), holidays=holidays, \
business_hours=(time(7), time(16)))
...
bug
JosefJezek
- 1
- Opened on Feb 24, 2015
- #7
Could you make Function for add deltatime?
See https://github.com/ogt/workdays https://bitbucket.org/bgelineau/python-bizdatetime
enhancement
JosefJezek
- 2
- Opened on Jul 15, 2014
- #4

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.