1.1.1 • Published 8 years ago

@f/clone-date v1.1.1

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

clone-date

Build status Git tag NPM version Code style

Clone a date object

Installation

$ npm install @f/clone-date

Usage

var cloneDate = require('@f/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