Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

        def get_date_bounds(text):
    d1, d2 = text.split(' ')
    d1, d2 = [int(x) for x in d1.split('/')], [int(x) for x in d2.split('/')]
    d1.reverse(), d2.reverse()
    return date(*d1), date(*d2)
        


src/a/p/apidev-sanza-3.0.4/sanza/Search/templatetags/sanza_pdf.py   apidev-sanza(Download)
from sanza.utils import logger
from django.db.models import Q
from sanza.Search.utils import get_date_bounds
 
@register.filter
            lookup_filter += [Q(type=action_type)]
        if planned_date:
            dt_from, dt_to = get_date_bounds(planned_date)
            lookup_filter += [Q(planned_date__gte=dt_from) & Q(planned_date__lte=dt_to)]
        if done_date:
            dt_from, dt_to = get_date_bounds(done_date)