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

All Samples(13)  |  Call(13)  |  Derive(0)  |  Import(0)
Return the 24-hour clock representation of the hour.

src/e/r/erp5-HEAD/product/ERP5/mixin/periodicity.py   erp5(Download)
      new_date = DateTime(date.timeTime() + 3600.0)
    return DateTime(new_date.year(), new_date.month(), new_date.day(),
            new_date.hour(), 0, 0, timezone)
 
  def _getNextMinute(self, date, timezone):
      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)
 
  security.declareProtected(Permissions.AccessContentsInformation, 'getNextPeriodicalDate')

src/e/r/erp5-HEAD/product/Formulator/Widget.py   erp5(Download)
          hour = "%02d" % value.h_12()
      else:
          hour = "%02d" % value.hour()
      minute = "%02d" % value.minute()
      ampm = value.ampm()

src/p/r/Products.Formulator-1.15.5/Products/Formulator/Widget.py   Products.Formulator(Download)
                hour = "%02d" % value.h_12()
            else:
                hour = "%02d" % value.hour()
            minute = "%02d" % value.minute()
            ampm = value.ampm()
                        sub_values['ampm'] = value.ampm()
                    else:
                        sub_values['hour'] = "%02d" % value.hour()
                    sub_values['minute'] = "%02d" % value.minute()
        for subfield in subfields:
            hour = "%02d" % value.h_12()
        else:
            hour = "%02d" % value.hour()
        minute = "%02d" % value.minute()
        ampm = value.ampm()

src/p/l/plone.app.event-1.2.4/plone/app/event/at/content.py   plone.app.event(Download)
                value.month(),
                value.day(),
                value.hour(),
                value.minute(),
                int(value.second())  # No microseconds

src/e/r/erp5-HEAD/product/ERP5Type/DateUtils.py   erp5(Download)
  ordinal_date = datetime.toordinal(formatted_creation_date)
  ordinal_reference_date = datetime.toordinal(reference_date)
  hour = (ordinal_date - ordinal_reference_date) * number_of_hours_in_day + number_of_hours_in_day + date.hour()
  return int(hour)
 

src/s/e/seantis.reservation-1.0.21/seantis/reservation/reserve.py   seantis.reservation(Download)
 
        dt = DateTime(value)
        return time(dt.hour(), dt.minute())
 
    def validate(self, data):

src/d/a/DateTime-4.0.1/src/DateTime/tests/test_datetime.py   DateTime(Download)
            dt.month(),
            dt.day(),
            dt.hour(),
            dt.minute(),
            dt.second(),
            dt.month(),
            dt.day(),
            dt.hour(),
            dt.minute(),
            dt.second(),
            dt.month(),
            dt.day(),
            dt.hour(),
            dt.minute(),
            dt.second())