function parseNumber ( num ) { return num < 10 ? 0 + num : num ; } function _timeFormat < T > ( data ) { return data . toString ( ) . length < 13 ? data * 1000 : data ; } type timeSpanInter = ( timeSpan ? : number ) => number ; let timeSpanPositioning = ( timeSpan = 1 ) => { return Math . ceil ( ( new Date ( ) - new Date ( new Date ( ) . getFullYear ( ) . toString ( ) ) ) / ( 24 * 60 * 60 * 1000 ) / timeSpan ) ; } ; function convertTimestamps ( time ) { return new Date ( time . replace ( /-/g , "/" ) ) . getTime ( ) ; } export { parseNumber , _timeFormat , timeSpanPositioning , convertTimestamps } ;