django 取出當天日期的數據

from django.utils import timezonedjango

from datetime import timedeltaimport

now = timezone.now()object

start = now - timedelta(hours=23,minutes=59,seconds=59)date

DB.objects.filter(column__gt=start)im

相關文章
相關標籤/搜索