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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/a/r/archetypes.datetimewidget-HEAD/archetypes/datetimewidget/widget_datetime.py   archetypes.datetimewidget(Download)
    def padded_hour(self, hour):
        if self.ampm is True and self.is_pm() and int(hour)!=12:
            hour = str(int(hour)-12)
        return self._padded_value(hour)
 
    def padded_minute(self, minute):
        return self._padded_value(minute)