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

All Samples(277)  |  Call(277)  |  Derive(0)  |  Import(0)
Return the date string for the object.

src/p/l/plone.app.event-1.2.4/plone/app/event/at/content.py   plone.app.event(Download)
    open_end = obj.getOpenEnd()
    if whole_day:
        start = DateTime('%s 0:00:00 %s' % (start.Date(), timezone))
    if open_end:
        end = start  # Open end events end on same day
    if open_end or whole_day:
        end = DateTime('%s 23:59:59 %s' % (end.Date(), timezone))

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

src/e/r/erp5-HEAD/product/ERP5Type/DateUtils.py   erp5(Download)
                      getIntervalBetweenDates(from_date=return_date, to_date=target_date, keys={'day':1})['day'] > 0):
    return_date = addToDate(date = return_date, to_add = { precision:1 })
  if before and DateTime(return_date.Date()) != DateTime(target_date.Date()) :
    return_date = addToDate(date = return_date, to_add = { precision:-1 })
 

src/c/o/collective.subscribemember-1.11/collective/subscribemember/utils.py   collective.subscribemember(Download)
            values['memberJoinedDate'] = memberJoinedDate.Date()                
            mem.Schema()['memberExpiryDate'].set(mem, memberExpiryDate)
            values['memberExpiryDate'] = memberExpiryDate.Date()
            membertypes = getUtility(IMemberTypesGetter).return_member_types()
            subscribememberroles = membertypes[mem.Schema()['memberType'].get(mem)][2]