|
|
@@ -1101,7 +1101,7 @@ const parseTime = (time: any, cFormat?: string) => {
|
|
|
* @param {string} option
|
|
|
* @returns {Number} (秒)
|
|
|
*/
|
|
|
-export const formatTime = function (time: string | number, option: string, ifshort: boolean, nowtime?: string) {
|
|
|
+export const formatTime = function (time: string | number | Date, option: string, ifshort: boolean, nowtime?: string) {
|
|
|
const _time = new Date(time);
|
|
|
const d = new Date(time);
|
|
|
const now = nowtime ? new Date(nowtime) : new Date();
|