Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

isodate

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isodate

ISO 8061 date/time parser

Source
npmnpm
Version
0.0.0
Version published
Weekly downloads
705
-4.34%
Maintainers
1
Weekly downloads
 
Created
Source

ISODate is a small package that enables the parsing of ISO 8061 date strings.

Usage

var ISODate = require("isodate");

// Read a date string
var date = ISODate("2011-08-20T19:39:52Z");
console.log(date);

// Write current date as ISO 8061 string.
date = new Date();
console.log(date.toISO8061());

It's also able to parse strings with timezones like in 2011-08-20T19:44:05+01:00 but toISO8061() always writes to Z timezone (GMT +00:00).

FAQs

Package last updated on 26 Aug 2011

Did you know?

Socket

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