import dayjs from 'dayjs' ; export const formatTime = ( time , format = 'YYYY-MM-DD HH:mm:ss' ) => { return dayjs ( time ) . format ( format ) ; } ; export const formatDate = ( time , format = 'M月D日 · YYYY年' ) => { return dayjs ( time ) . format ( format ) ; } ;