PyDocs

Nav

Data Types

datetime.replace

  • datetime.replace(year=self.year, month=self.month, day=self.day, hour=self.hour, minute=self.minute, second=self.second, microsecond=self.microsecond, tzinfo=self.tzinfo, *, fold=0)
Return datetime with new specified fields.
Changed in 3.6
  • 3.6: Added the fold parameter.
0 Examples
No examples for datetime/datetime.replace.
See Also
No see-alsos for datetime/datetime.replace
0 Notes
No notes for datetime.replace