yc-ui2 0.1.2-beta18 → 0.1.2-beta20

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,10 @@
1
+ // 过滤时间
2
+ export function formateTime(dateStr) {
3
+ let year = dateStr.slice(0, 4);
4
+ let month = dateStr.slice(4, 6);
5
+ let date = dateStr.slice(6, 8);
6
+ let hours = dateStr.slice(8, 10);
7
+ let minute = dateStr.slice(10, 12);
8
+ let second = dateStr.slice(12);
9
+ return `${year}-${month}-${date} ${hours}:${minute}:${second}`;
10
+ }