Transfrom english words like "10 days" into seconds

time:words_to_seconds(STRING $words) : INT

time:words_to_seconds("10 days")
#=> 864000

time:words_to_seconds("1 hour 30 minutes")
#=> 5400

time:words_to_seconds("10 years")
#=> 315619200

time:words_to_seconds("3 minutes")
#=> 180

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