import moment from 'moment-timezone' ; function getTimeStamp ( time , timezone = 'America/New_York' ) { return new Date ( moment . tz ( time , timezone ) . format ( ) ) . getTime ( ) ; } export { getTimeStamp } ;