Package

purescript-precise-datetime

Repository
awakesecurity/purescript-precise-datetime
License
Apache-2.0
Uploaded by
paulyoung
Published on
2018-03-09

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-bigints, it also requires installing big-integer from npm when targeting JavaScript.