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

All Samples(58)  |  Call(58)  |  Derive(0)  |  Import(0)
Return the month of the object as an integer.

src/e/r/erp5-HEAD/product/ERP5/mixin/periodicity.py   erp5(Download)
      else:
        new_date = DateTime(new_date.timeTime() + 3600.0)
    return DateTime(new_date.year(), new_date.month(), new_date.day(),
            0, 0, 0, timezone)
 
    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)
    if isinstance(value, DateTime):
      year = "%04d" % value.year()
      month = "%02d" % value.month()
      day = "%02d" % value.day()
      if use_ampm:

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/r/Products.Formulator-1.15.5/Products/Formulator/Widget.py   Products.Formulator(Download)
                value = DateTime(value)
            year = "%04d" % value.year()
            month = "%02d" % value.month()
            day = "%02d" % value.day()
            if use_ampm:
                value = DateTime(value)
            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'):
            value = DateTime(value)
        year = "%04d" % value.year()
        month = "%02d" % value.month()
        day = "%02d" % value.day()
        if use_ampm:

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/utils.py   Products.BastionLedger(Download)
        dt = DateTime(dt)
    # find the first of the next month (thats easy) then deduct a day ...
    if dt.month() == 12:
        return DateTime('%i/01/01 %s' % ((dt.year() + 1), dt.timezone())) - 1
    return DateTime('%i/%0.2i/01 %s' % (dt.year(), dt.month() + 1, dt.timezone())) - 1

src/p/l/plone.app.event-1.2.4/plone/app/event/at/content.py   plone.app.event(Download)
            '%04d-%02d-%02dT%02d:%02d:%02d' % (
                value.year(),
                value.month(),
                value.day(),
                value.hour(),

src/p/r/Products.PloneBooking-3.0.0a2/Products/PloneBooking/DateManager.py   Products.PloneBooking(Download)
        # Finished at 23:59:59
        end_date = DateTime(end_date.year(),
                      end_date.month(),
                      end_date.day(),
                      23, 59, 59)
        # Finished at 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(),

src/b/i/bika.lims-3.01a/bika/lims/content/analysisrequest.py   bika.lims(Download)
            invoice_batch = b_proxy.getObject()
        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)
            except DateTime.SyntaxError:
                start = DateTime(DateTime().strftime("%Y/%m/01"))
            end = DateTime('%s/%s/%s' % (start.year() + start.month() / 12,
                                         start.month() % 12 + 1, 1))
            end = end - 1

src/b/i/Bika-LIMS-HEAD/bika/lims/content/analysisrequest.py   Bika-LIMS(Download)
            invoice_batch = b_proxy.getObject()
        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():

  1 | 2 | 3  Next