arrow-py / arrow

🏹 Better dates & times for Python
https://arrow.readthedocs.io
Apache License 2.0
8.63k stars 669 forks source link

passing a parameter to Arrow.shift function (to check for imaginary times or not) #1145

Open not-so-rabh opened 1 year ago

not-so-rabh commented 1 year ago

The shift function takes some time than absolute adding of relativedelta to datetime. If I am operating on a range where I know there is no dst change I should be able to bypass this check.