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
datetime.datetime.today() should be equivalent to datetime.fromtimestamp(time.time()). However in 0.3.7 I get this result:
datetime.datetime.today()
datetime.fromtimestamp(time.time())
>>> import datetime >>> import time >>> from freezegun import freeze_time >>> with freeze_time(datetime.datetime(2016, 9, 9)): ... print datetime.datetime.today() ... print datetime.datetime.fromtimestamp(time.time()) ... 2016-09-09 00:00:00 2016-09-09 08:00:00
It should be:
>>> import datetime >>> import time >>> print datetime.datetime.today(), datetime.datetime.fromtimestamp(time.time()) 2016-09-09 17:36:33.659690 2016-09-09 17:36:33.659747 >>>
It looks like something wrong with the time zone.
The text was updated successfully, but these errors were encountered:
Thanks for opening.
I believe this is a dupe of #89. A solution is at #136, but it hasn't been merged in yet.
I'm going to close, but feel free to reopen if you think my assessment is wrong.
Sorry, something went wrong.
No branches or pull requests
datetime.datetime.today()
should be equivalent todatetime.fromtimestamp(time.time())
. However in 0.3.7 I get this result:It should be:
It looks like something wrong with the time zone.
The text was updated successfully, but these errors were encountered: