in lib/google/serverless/exec.rb [607:615]
def parse_timeout timeout_str
matched = timeout_str =~ /^(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s?)?$/
raise BadParameter.new "timeout", timeout_str unless matched
hours = ::Regexp.last_match(1).to_i
minutes = ::Regexp.last_match(2).to_i
seconds = ::Regexp.last_match(3).to_i
hours * 3600 + minutes * 60 + seconds
end