lint:format code

This commit is contained in:
Pan 2017-12-11 13:39:58 +08:00
parent bb0b37e0eb
commit 8ab770e9de
3 changed files with 53 additions and 53 deletions

View File

@ -2,7 +2,7 @@
* Created by jiachenpan on 16/11/18.
*/
export function parseTime(time, cFormat) {
export function parseTime(time, cFormat) {
if (arguments.length === 0) {
return null
}
@ -32,9 +32,9 @@
return value || 0
})
return time_str
}
}
export function formatTime(time, option) {
export function formatTime(time, option) {
time = +time * 1000
const d = new Date(time)
const now = Date.now()
@ -55,4 +55,4 @@
} else {
return d.getMonth() + 1 + '月' + d.getDate() + '日' + d.getHours() + '时' + d.getMinutes() + '分'
}
}
}