I can get current datetime from arrow like this:
arrow.utcnow().date()
or
arrow.get('2017-02-01').date()
How can I get the previous day datetime? This does not work:
arrow.utcnow().date() - 1
or
arrow.get('2017-02-01').date() - 1
I can get current datetime from arrow like this:
arrow.utcnow().date()
or
arrow.get('2017-02-01').date()
How can I get the previous day datetime? This does not work:
arrow.utcnow().date() - 1
or
arrow.get('2017-02-01').date() - 1
Copyright © 2021 Jogjafile Inc.
thanks kayluhb. update is to use shift:
you can use replace: