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
In the following example, year_floor returns a January 1st datetime that still has daylight savings time enabled.
year_floor
>>> from datequant import year_floor >>> from pytz import timezone >>> from datetime import datetime >>> pst8pdt = timezone('PST8PDT') >>> pst8pdt.localize(datetime(2013,1,1)) datetime.datetime(2013, 1, 1, 0, 0, tzinfo=<DstTzInfo 'PST8PDT' PST-1 day, 16:00:00 STD>) >>> year_floor(pst8pdt.localize(datetime(2013,7,1))) datetime.datetime(2013, 1, 1, 0, 0, tzinfo=<DstTzInfo 'PST8PDT' PDT-1 day, 17:00:00 DST>)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the following example,
year_floor
returns a January 1st datetime that still has daylight savings time enabled.The text was updated successfully, but these errors were encountered: