Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)
Return a new DateTime object that represents the earliest
possible time (in whole seconds) that still falls within
the current object's day, in the object's timezone context.

src/b/i/bika.lims-3.01a/bika/lims/content/analysisrequest.py   bika.lims(Download)
        if not invoice_batch:
            first_day = DateTime(now.year(), now.month(), 1)
            start_of_month = first_day.earliestTime()
            last_day = first_day + 31
            while last_day.month() != now.month():

src/f/t/ftw.blog-1.6.1/ftw/blog/browser/blog.py   ftw.blog(Download)
                                         start.month() % 12 + 1, 1))
            end = end - 1
            query['created'] = {'query': (start.earliestTime(),
                                          end.latestTime()),
                                'range': 'minmax'}

src/b/i/Bika-LIMS-HEAD/bika/lims/content/analysisrequest.py   Bika-LIMS(Download)
        if not invoice_batch:
            first_day = DateTime(now.year(), now.month(), 1)
            start_of_month = first_day.earliestTime()
            last_day = first_day + 31
            while last_day.month() != now.month():

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/utils.py   Products.BastionLedger(Download)
    if not isinstance(dt, DateTime):
        dt = DateTime(dt)
    return dt.earliestTime() # .toZone(dt.timezone())
 
def ceiling_date(dt):

src/f/t/ftw.contentpage-1.6.5/ftw/contentpage/browser/baselisting.py   ftw.contentpage(Download)
                                 start.month() % 12 + 1, 1))
    end = end - 1
    query[date_field] = {'query': (start.earliestTime(),
                                    end.latestTime()),
                          'range': 'minmax'}

src/p/l/plone.app.querystring-1.2.0/plone/app/querystring/queryparser.py   plone.app.querystring(Download)
        values = 0
    now = DateTime()
    start_date = now.earliestTime()
    end_date = now + values
    end_date = end_date.latestTime()
def _today(context, row):
    now = DateTime()
    start_date = now.earliestTime()
    end_date = now.latestTime()
    row = Row(index=row.index,

src/c/o/collective.periodcriterion-0.2.0/collective/periodcriterion/criteria.py   collective.periodcriterion(Download)
    if value=='today':
        today = DateTime(date.Date())
        return (today.earliestTime(), today.latestTime())
    if value=='this_month':
        month_start = DateTime('%d/%02d/01' % (date.year(), date.month()) )

src/s/i/silva.app.news-3.0.4/src/silva/app/news/viewers/NewsViewer.py   silva.app.news(Download)
            if days_limit_for_events and self._number_is_days:
                ## If days limit is valid also for the AGENDA ITEMS...
                past_limit = (now.earliestTime() - self._number_to_show)
                ## We filter the AGENDA ITEMS on the display_datetime too
                ## as for the NEWS ITEMS.

src/s/i/silva.app.news-3.0.4/src/silva/app/news/filters/Filter.py   silva.app.news(Download)
            # the on number of days instead of the number of items
            now = DateTime()
            last_night = now.earliestTime()
            query['display_datetime'] = {
                'query': [last_night - number, now],

src/p/l/plone.app.querystring-1.2.0/plone/app/querystring/tests/testQueryParser.py   plone.app.querystring(Download)
    def test__lessThanRelativeDate(self):
        days = 2
        now = DateTime()
        mydate = now + days
        expected_dates = [now.earliestTime(), mydate.latestTime()]
    def test__today(self):
        now = DateTime()
        expected_dates = [now.earliestTime(), now.latestTime()]
        expected = {'modified': {'query': expected_dates, 'range': 'minmax'}}
        data = Row(