I have two date time objects in Python 2.7.
The first looks like this:
2018-09-22 00:00:00
and the second looks like this:
1899-12-30 17:20:59
I would like to end up with the dates from the first datetime object and the time from the second datetime object.
2018-09-22 17:20:59
Unfortunately I am coding for some old GIS software and compelled to use 2.7 Any help is appreciated.
source https://stackoverflow.com/questions/76376535/slice-two-datetime-objects-with-python
Comments
Post a Comment