PyDocs
Standard Library
(3.15.2)
Quick Reference
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Data Types
array
bisect
calendar
collections
collections.abc
copy
datetime
enum
graphlib
heapq
pprint
reprlib
types
weakref
zoneinfo
All modules
PyDocs
Standard Library
Quick Ref
Log In
Staging: this is not the live site, pydocs.org.
PyDocs
Standard Library
Quick Ref
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Data Types
array
bisect
calendar
collections
abc
copy
datetime
enum
graphlib
heapq
pprint
reprlib
types
weakref
zoneinfo
All modules
datetime.replace
datetime
method of
datetime
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.
© Python Software Foundation.
PSF License Version 2
·
Official docs ↗
Changed in 3.6
3.6:
Added the fold parameter.
0 Examples
No examples for datetime/datetime.replace.
Log in
to add an example
See Also
No see-alsos for
datetime/datetime.replace
Log in
to add a see-also
0 Notes
No notes for
datetime.replace
Log in
to add a note