Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Date.diffToSeconds

Date.diffToSeconds($duration) -> number

Description

For a given $duration string, return the number of seconds.

Date.diffToSeconds('2 hours')
//= 7200

See Also