Wednesday, July 22, 2015

Re: All posts from same day django

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJVr/2MAAoJEC0ft5FqUuEhPc0QAIACEH4l6mE5hoTApiOIPmAf
4+a3lodCIfqa+m2Or2h1X+1Dq93qgKpqPL9wLP90WwBx1bsVAHN7e4mtKk/BXomX
ExABMHOL7wvB3XDQcCuGC/DWB7NkIvqEDFyJmaqrFweQNoJr4qjZ9lbntqNK8Jpk
aYLJMBNel2fD0yMReh+ZvQGB+Ai3bV0y2CB0omuwwCNA3wxv+iyul45gYXpkptte
NHqg496tInxxeJw4YSgc6k9ULxi9tV4fFSvyv5SiN2HmVeayhtHV/35ySgGlwBve
yfB9muL1RFTUmAvfNNua6KDci+S8EDZbbnpk0d6vYhtQC6MjG0rBrjw9KPmTncI+
AmEiThST/9PXIajArjXWzR7ULmk1URYB5kMJI+vDgVkmKqHqk+XGVjMIW/epIvxT
LKxt0TjpAnlMJNo6zFNfXhW9PWnXIdpli7L/sEweiZmhgZLn7V4314Bt8yj0cOyS
SGDZ4dMmUECSaO2dtH7P+tNr1R1ryHkc614hI0atNHPhNvHs96C7QvjH+7L/Bcis
qRYoYbtjfbgJVAG0ns8fMsd5vNF2g8enH7ADRL0SViOZYGsFb/EtTEiPvzAkWJqT
7WgUr48Nb+Qn5vv85YVvhq6EBpdGV81hPxcGK7YiCHeKRj/lCJGt1L7HKzxSbGQp
XJ7U2X22wIC27kYlg4pJ
=TE2i
-----END PGP SIGNATURE-----
On 07/22/2015 02:26 PM, Nkansah Rexford wrote:
> Thanks Carl
>
> Also got these approaches too, might help someone
> too: http://stackoverflow.com/questions/31571607/all-posts-from-same-day-only-django

I just re-read your original post, and my suggestion was wrong - it gets
you all posts from the last 24 hours. Your accepted answer on SO is
right, except that really you should use `django.timezone.now()` instead
of `datetime.now()`.

Carl

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/55AFFD8C.7040301%40oddbird.net.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment