Date.diffToSeconds
Date.diffToSeconds($duration) -> number
Description
For a given $duration string, return the number of seconds.
Date.diffToSeconds('2 hours')
//= 7200
For a given $duration string, return the number of seconds.
Date.diffToSeconds('2 hours')
//= 7200