1.0.5 • Published 5 years ago

time-formating v1.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

时间戳格式化插件

使用说明

# 安装依赖
npm install time-formating --save

# 项目引用
import timeFormating from 'time-formating'
Vue.prototype.$timeformater = timeFormating

# 组件中使用
this.$timeformater('1528094422381') // 2018-06-04 14:40:22
this.$timeformater('1528094422381','YYYY-MM-DD hh:mm:ss') // 2018-06-04 14:40:22
this.$timeformater('1528094422381','YYYY-MM-DD hh-mm-ss') // 2018-06-04 14-40-22
this.$timeformater('1528094422381','YYYY/MM/DD') // 2018/06/04
this.$timeformater('1528094422381','YYYY/MM/DD hh:mm:ss') // 2018/06/04 14:40:22
this.$timeformater('1528094422381','YYYY/MM/DD hh-mm-ss') // 2018/06/04 14-40-22
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago