arrow-py / arrow

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

Please support time str or any params that arrow.get can sparse to replace datetime expression in Arrow.range #867

Closed CatNofishing closed 3 years ago

CatNofishing commented 3 years ago

I notice that Arrow.range Arrow.span_range or other method only can sparse Arrow or datetime object, i thinks this is unconvenient. If it can sparse any expressions that arrow.get can sparse, it is will be good. image

Last, i think it is good to add all Arrow class method api to arrow.api, It will be more simple and perfect. For example arrow.range is better than arrow.Arrow.range

systemcatch commented 3 years ago

Hi @CatNofishing, we're not planning on changing the accepted inputs for range or span_range. I can take a look at changing some arrow.Arrow. imports to arrow.