You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importarrowarw=arrow.Arrow(2013, 1, 1, 0, 0, 0)
later=arw.shift(seconds=3600)
humanize_string=arw.humanize(later, granularity=["second", "hour", "day", "month", "year"],)
print(humanize_string)
>>>"in 0 years 0 months 0 days an hour and 0 seconds"
"in 0 years 0 months 0 days an hour and 0 seconds" should be "0 years 0 months 0 days an hour and 0 seconds ago". I suspect this is dude to the fact in describe-mutli we take timeframes[-1], which in this case would be 0. This results in format relative defaulting to it's positive version. We might need a linear search through all the timeframe units to better determine the correct relative phrase to use.
The text was updated successfully, but these errors were encountered:
Issue Description
System Info
"in 0 years 0 months 0 days an hour and 0 seconds" should be "0 years 0 months 0 days an hour and 0 seconds ago". I suspect this is dude to the fact in describe-mutli we take timeframes[-1], which in this case would be 0. This results in format relative defaulting to it's positive version. We might need a linear search through all the timeframe units to better determine the correct relative phrase to use.
The text was updated successfully, but these errors were encountered: