Socket
Socket
Sign inDemoInstall

iso8601-convert

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    iso8601-convert

Convert between ISO8601 strings and Date objects


Version published
Weekly downloads
88
increased by7.32%
Maintainers
1
Install size
5.68 kB
Created
Weekly downloads
 

Readme

Source

iso8601-convert

Convert between ISO8601 strings and Date objects

Alternative to Date.parse() with support for leap seconds. A fork of calmh/node-iso8601.

Installation

npm install iso8601-convert

Usage

var iso8601 = require('iso8601-convert')

// convert ISO 8601 date string to Date object
console.log(iso8601.toDate('2012-05-21T23:32:12.419Z'))
// convert Date object to ISO 8601 date string
console.log(iso8601.fromDate(Date.now()))

Keywords

FAQs

Last updated on 21 Feb 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc