1.0.5 • Published 2 years ago

@licq/date v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@licq/date

封装一些日期的操作方法

NPM version NPM downloads

安装

npm i --save-dev @licq/date

API

formatTime

格式化日期

Returns: String
Since: v1.0.0

ParamTypeDescription
formatString格式 default: 'yyyy-MM-dd hh:mm:ss'
dateDate日期 default: new Date()

Example

const date = require('@licq/date')
const res = date.formatTime()
//==> eg: 2022-01-09 17:58:02

const res = date.formatTime('yyyy-MM-dd')
//==> eg: 2022-01-09
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago