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

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

src/p/r/Products.eXtremeManagement-2.1a7/Products/eXtremeManagement/utils.py   Products.eXtremeManagement(Download)
    else:
        day = 30
    return DateTime.latestTime(DateTime(year, month, day))
 

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.latestTime() #.toZone(dt.timezone())
 
def month_beginning_date(dt):

src/e/r/erp5-HEAD/product/ERP5/Document/AmortisationRule.py   erp5(Download)
        # Round date
        stop_date = movement['stop_date']
        if stop_date.latestTime() - stop_date < centis:
          stop_date = stop_date + 1
        stop_date = DateTime(stop_date.Date())

src/p/l/plone.app.querystring-1.2.0/plone/app/querystring/queryparser.py   plone.app.querystring(Download)
    start_date = now - values
    start_date = start_date.earliestTime()
    end_date = now.latestTime()
    row = Row(index=row.index,
              operator=row.operator,
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/p/l/plone.app.querystring-1.2.0/plone/app/querystring/tests/testQueryParser.py   plone.app.querystring(Download)
    def test__moreThanRelativeDate(self):
        days = 2
        now = DateTime()
        mydate = now - days
        expected_dates = [mydate.earliestTime(), now.latestTime()]
    def test__today(self):
        now = DateTime()
        expected_dates = [now.earliestTime(), now.latestTime()]
        expected = {'modified': {'query': expected_dates, 'range': 'minmax'}}
        data = Row(