1.0.0 • Published 9 years ago

@micro-js/clone-date v1.0.0

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

clone-date

Build status Git tag NPM version Code style

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

1.0.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago