Skip to content

shuangmuyingzi/dateFormat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

datechange

一个格式化后台接口返回时间戳的小插件.

Installation

npm install --save-dev datechange

Usage

var datechange = require('datechange');
var now = new Date();
var timeStamp = datechange(now);

or

<script type="text/javascript" src='date.js'></script>
	<script type="text/javascript">
		var now = new Date();
		var timeStamp = datechange(1511350834583);
		alert(timeStamp)
	</script>

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published