1.0.0 • Published 9 years ago
@micro-js/clone-date v1.0.0
clone-date
Clone a date object
Installation
$ npm install @micro-js/clone-date
Usage
var cloneDate = require('@micro-js/clone-date')
var date = new Date()
var newDate = cloneDate(date)
date.getTime() === newDate.getTime()
date !== newDate
API
cloneDate(date)
date
- The date object to be cloned
Returns: A new date object with the same timestamp as date
License
MIT