'Set time with Python Arrow
Do you know how I can set time using Python Arrow to today at 00:00:00 and to now in localtime. With time library I do something similar but in UTC:
from_date_str = time.strftime("%Y-%m-%d 00:00")
to_date_str = time.strftime("%Y-%m-%d %H:%M")
thanks.
Solution 1:[1]
ok I solved with
arrow.now('Europe/Amsterdam').strftime("%Y-%m-%d %H:%M")
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | toto' |