I was wondering if we could have a feature where we could replace the parts of the underlying datetime object. For example, I would really love to do this:
d = Delorean(timezone="US/Eastern")
d = d.replace(hour=8, minute=10)
I am currently achieving this by doing this:
d = Delorean(timezone="US/Eastern")
dt = d.datetime.replace(hour=12)
d = Delorean(dt)
But the above would be much easier. I can send a PR if this seems like a good idea.
I was wondering if we could have a feature where we could replace the parts of the underlying datetime object. For example, I would really love to do this:
I am currently achieving this by doing this:
But the above would be much easier. I can send a PR if this seems like a good idea.