I have
import arrow
s = \'2015/12/1 19:00:00\'
tz = \'Asia/Hong_Kong\'
How can I parse this with Arrow such that I get an Arrow object with the
Per the current documentation, you can also provide a default timezone for arrow.get()
, e.g.:
s = '2015/12/1 19:00:00'
tz = 'Asia/Hong_Kong'
arrow.get(s, tzinfo=tz)
However, as of right now (version 0.12.1) there is a shortcoming where that doesn't work for string-based date parsing. Fortunately, this has been fixed, so the next release of Arrow will integrate this fix.