timecycle

1.1.3 • Public • Published

formatDateTime(inputTime:string || number)
inputTime example: formatDateTime(new Date().getTime())

formatDate(inputTime:string || number)
inputTime example: formatDate(new Date().getTime())

difference(startTime,endTime)
startTime : '2020-10-20 15:30:49' || number endTime : '2020-10-20 15:30:49' || number example: difference('2020-10-20 15:30:49','2020-10-20 15:30:49') example: difference(15612321515,16541156156156) example: difference(15612321515) endTime default Date.now().getTime()

regTest(regName : string,inputValue:string):void

Readme

Keywords

none

Package Sidebar

Install

npm i timecycle

Weekly Downloads

0

Version

1.1.3

License

ISC

Unpacked Size

5.89 kB

Total Files

3

Last publish

Collaborators

  • zhanggenyuan