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

All Samples(46)  |  Call(46)  |  Derive(0)  |  Import(0)
Return the integer day.

src/e/r/erp5-HEAD/product/ERP5/mixin/periodicity.py   erp5(Download)
    # Due to daylight savings, 24 hours later does not always mean that
    # it's next day.
    while new_date.day() == date.day():
      if timezone is not None:
        new_date = DateTime(new_date.timeTime() + 3600.0, timezone)
      else:
        new_date = DateTime(new_date.timeTime() + 3600.0)
    return DateTime(new_date.year(), new_date.month(), new_date.day(),
    else:
      new_date = DateTime(date.timeTime() + 3600.0)
    return DateTime(new_date.year(), new_date.month(), new_date.day(),
            new_date.hour(), 0, 0, timezone)
 
    else:
      new_date = DateTime(date.timeTime() + 60.0)
    return DateTime(new_date.year(), new_date.month(), new_date.day(),
            new_date.hour(), new_date.minute(), 0, timezone)
 

src/e/r/erp5-HEAD/product/Formulator/Widget.py   erp5(Download)
      year = "%04d" % value.year()
      month = "%02d" % value.month()
      day = "%02d" % value.day()
      if use_ampm:
          hour = "%02d" % value.h_12()

src/p/r/Products.Formulator-1.15.5/Products/Formulator/Widget.py   Products.Formulator(Download)
            year = "%04d" % value.year()
            month = "%02d" % value.month()
            day = "%02d" % value.day()
            if use_ampm:
                hour = "%02d" % value.h_12()
            sub_values['year']  = '%04d' % value.year()
            sub_values['month'] = "%02d" % value.month()
            sub_values['day']   = "%02d" % value.day()
            if not field.get_value('date_only'):
                use_ampm = field.get_value('ampm_time_style')
        year = "%04d" % value.year()
        month = "%02d" % value.month()
        day = "%02d" % value.day()
        if use_ampm:
            hour = "%02d" % value.h_12()

src/p/l/plonetheme.arnolfini-0.96/plonetheme/arnolfini/browser/views.py   plonetheme.arnolfini(Download)
            if event.end() is not None:
                end = DateTime(event.end())
                return end.year() < t.year() or (end.year() == t.year() and end.month() < t.month()) or(end.year() == t.year() and end.month() == t.month() and end.day() < t.day())
            else:
                start = DateTime(event.start())
                return start.year() < t.year() or (start.year() == t.year() and start.month() < t.month()) or(start.year() == t.year() and start.month() == t.month() and start.day() < t.day())

src/p/l/plone.app.event-1.2.4/plone/app/event/at/content.py   plone.app.event(Download)
                value.year(),
                value.month(),
                value.day(),
                value.hour(),
                value.minute(),

src/p/r/Products.PloneBooking-3.0.0a2/Products/PloneBooking/DateManager.py   Products.PloneBooking(Download)
        end_date = DateTime(end_date.year(),
                      end_date.month(),
                      end_date.day(),
                      23, 59, 59)
 
        end_date = DateTime(end_date.year(),
                      end_date.month(),
                      end_date.day(),
                      23, 59, 59)
 
        start_date = DateTime(start_date.year(),
                      start_date.month(),
                      start_date.day(),
                      0, 0, 0)
 
        # Finished at 23:59:59
        end_date = DateTime(end_date.year(),
                      end_date.month(),
                      end_date.day(),

src/f/t/ftw.workspace-2.1.0/ftw/workspace/browser/overview.py   ftw.workspace(Download)
        modified = DateTime(datetimestring)
        if modified.month() == this_month and modified.year() == this_year:
            if modified.day() == today:
                return _(u'label_today', default=u'Today, ${time}',
                         mapping={'time': modified.strftime('%H:%M')})
 
            elif modified.day() == yesterday:

src/p/r/Products.plonehrm-2.14/Products/plonehrm/validator.py   Products.plonehrm(Download)
                error = _("Date is supposed to be in the past, "
                          "please enter a valid month.")
            elif value.day() > now.day():
                error = _("Date is supposed to be in the past, "
                          "please enter a valid day.")

src/c/o/collective.chimpfeed-2.0/src/collective/chimpfeed/campaign.py   collective.chimpfeed(Download)
    def results(self, start, until=None):
        today = DateTime()
        today = DateTime(today.year(), today.month(), today.day())
        start = DateTime(start)
        start = DateTime(start.year(), start.month(), start.day())

src/p/r/Products.eXtremeManagement-2.1a7/Products/eXtremeManagement/browser/bookings.py   Products.eXtremeManagement(Download)
            last_day = getEndOfMonth(year, month).day()
            date = DateTime(year, month, last_day - offset + 1)
        daynumber = date.day()
        # Assemble info for at most one month:
        ploneview = context.restrictedTraverse('@@plone')

  1 | 2 | 3  Next