Add given date interval to given time string

time:modify($time, $modify) : STRING

time:modify("now","+1 minute")
#=> "2020-01-06 16:36:03.504632 UTC"

time:modify("now","-1 minute")
#=> "2020-01-06 16:34:09.267021 UTC"

time:modify("2020-1-1 10:20 Atlantic/Azores", "44 hour 10 minutes")
#=> "2020-01-03 06:30:00.000000 Atlantic/Azores"

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