Set time with Python Arrow

123 Views Asked by At

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.

1

There are 1 best solutions below

0
toto' On

ok I solved with

arrow.now('Europe/Amsterdam').strftime("%Y-%m-%d %H:%M")