【文件属性】:
文件名称:randomdate:生成一个日期范围内的随机日期
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-27 14:37:44
JavaScript
随机日期
生成一个日期范围内的随机日期
安装
npm install randomdate
用法
var randomDate = require ( 'randomdate' ) ;
randomDate ( new Date ( 2014 , 09 , 01 ) , new Date ( 2014 , 11 , 12 ) ) ; // Thu Oct 23 2014 23:59:43 GMT-0700 (PDT)
文档
randomDate(startDate, [endDate=Date.now()])
返回一个日期对象。
执照
麻省理工学院
【文件预览】:
randomdate-master
----.gitignore(1KB)
----package.json(918B)
----LICENSE.md(1KB)
----CHANGELOG.md(82B)
----README.md(372B)
----randomdate.js(696B)
----.gitattributes(52B)
----bower.json(425B)
----test()
--------randomdate.js(339B)
----.editorconfig(439B)