Skip to contents

Convert a duration string to number of seconds

Usage

convert_to_seconds(time_string)

Arguments

time_string

string like 1 day, 2 weeks, 12 hours, etc.

Value

number of seconds