Lines Matching refs:microsecond
397 def _check_time_fields(hour, minute, second, microsecond, fold): argument
401 microsecond = _index(microsecond)
408 if not 0 <= microsecond <= 999999:
409 raise ValueError('microsecond must be in 0..999999', microsecond)
412 return hour, minute, second, microsecond, fold
1239 def __new__(cls, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, *, fold=0): argument
1265 hour, minute, second, microsecond, fold = _check_time_fields(
1266 hour, minute, second, microsecond, fold)
1272 self._microsecond = microsecond
1295 def microsecond(self): member in time
1386 self._hashcode = hash(time(h, m, self.second, self.microsecond))
1388 self._hashcode = hash((h, m, self.second, self.microsecond))
1505 def replace(self, hour=None, minute=None, second=None, microsecond=None, argument
1514 if microsecond is None:
1515 microsecond = self.microsecond
1520 return type(self)(hour, minute, second, microsecond, tzinfo, fold=fold)
1572 microsecond=0, tzinfo=None, *, fold=0): argument
1590 hour, minute, second, microsecond, fold = _check_time_fields(
1591 hour, minute, second, microsecond, fold)
1600 self._microsecond = microsecond
1623 def microsecond(self): member in datetime
1717 time.hour, time.minute, time.second, time.microsecond,
1797 return s + self.microsecond / 1e6
1816 return time(self.hour, self.minute, self.second, self.microsecond, fold=self.fold)
1820 return time(self.hour, self.minute, self.second, self.microsecond,
1824 minute=None, second=None, microsecond=None, tzinfo=True, argument
1839 if microsecond is None:
1840 microsecond = self.microsecond
1846 microsecond, tzinfo, fold=fold)
2126 self._hashcode = hash(timedelta(days, seconds, self.microsecond) - tzoff)