You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
masnun
changed the title
Feature Request: Using replace methods on the underlying datetime object
Feature Request: Adding a replace method to replace parts on the underlying datetime object
Mar 10, 2016
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.
The text was updated successfully, but these errors were encountered: