Skip to content

th-awake/purescript-precise-datetime

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purescript-precise-datetime

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PureScript 100.0%