Package

purescript-precise-datetime

Repository
awakesecurity/purescript-precise-datetime
License
Apache-2.0
Uploaded by
paulyoung
Published on
2018-10-31T20:12:54Z

Build Status

Dates with nanosecond precision.

Motivation

This package preserves nanosecond precision even in cases where the underlying language runtime does not.

For example, in JavaScript:

const rfc3339String = "1985-03-13T12:34:56.123456789Z";
const date = new Date(rfc3339String);
console.log(date.toISOString()); // 1985-03-13T20:34:56.123Z

Dependencies

Since this package depends on purescript-decimals, it also requires installing decimal.js from npm when targeting JavaScript.