0.0.2 • Published 2 years ago

yyt-vue-filter v0.0.2

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

vue-filter

timespan filter

Installation

$ npm install --save yyt-vue-filter

or

$ yarn add yyt-vue-filter

Import

import yytFilter from 'yyt-vue-filter' Vue.use(yytFilter)

Example

{{'/Date(1542017922133)/' | toTimeString}} => 2018-11-12 18:18:42

{{'/Date(1542017922133)/' | toTimeString('yyyy-MM-dd hh:mm:ss')}} => 2018-11-12 18:18:42

0.0.2

2 years ago