We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi everyone I am trying to use the stops feature in my code like this:
count = 0 for stop in stops(freq=delorean.DAILY, count=7, start=d1, stop=d2): if(stop.date == mydate): count = count + 1
But I keep getting this error:
AttributeError: 'datetime.date' object has no attribute 'tzinfo'
I dont understand what I am doing wrong. Will really appreciate the help.
Best
The text was updated successfully, but these errors were encountered:
@aliirz I need more context around this issue. what is stop? what is mydate, d1, d2? maybe send a gist, with sample code.
Sorry, something went wrong.
I got the same error using more or less this code:
from datetime import date, date time from delorean import Delorean dt = date(2013, 5, 06) dl = Delorean(dt, timezone="UTC")
This is the workaround I used:
from datetime import date, datetime from delorean import Delorean dt = date(2013, 5, 06) dl = Delorean(datetime(dt.year, dt.month, dt.day), timezone="UTC")
9d4c583
writing a test case for the bug uncovered in #42
a091d44
No branches or pull requests
Hi everyone I am trying to use the stops feature in my code like this:
But I keep getting this error:
AttributeError: 'datetime.date' object has no attribute 'tzinfo'
I dont understand what I am doing wrong. Will really appreciate the help.
Best
The text was updated successfully, but these errors were encountered: