Explain the difference of ($time1 - $time2) in english words

time:diff_in_words(STRING $time1, STRING $time2) : STRING

time:diff_in_words("2020-1-1 10:31 UTC","2021-1-1 10:30 UTC")
#=> "in 11 months, 30 days, 23 hours, 59 minutes"

time:diff_in_words("2020-1-1 10:31 UTC","2020-1-1 10:24 UTC")
#=> "7 minutes ago"

time:diff_in_words("2020-1-1 10:24:55 UTC","2020-1-1 10:24:39 UTC")
#=> "16 seconds ago"

Copyright ©2013-2022 SunSed®. All rights reserved.