export function secondsToMs ( s ) { return s * 1000 ; } export function msToSeconds ( s ) { return s / 1000 ; } export function minutesToMs ( m ) { return secondsToMs ( m ) * 60 ; } export function hoursToMs ( h ) { return minutesToMs ( h ) * 60 ; } export function daysToMs ( d ) { return hoursToMs ( d ) * 24 ; } export function weeksToMs ( w ) { return daysToMs ( w ) * 7 ; }