andrewmcveigh / cljs-time

A clj-time inspired date library for clojurescript.
342 stars 57 forks source link

Dropped support for more second fraction decimals? #129

Open perkola opened 6 years ago

perkola commented 6 years ago

Hi,

Since version 0.4.0 the support for five decimals in the seconds fraction seems to have disappeared. The custom formatters only support three decimals now through SSS. Is this intentional? Would it be possible to allow any number of decimals for the fraction?

(This might be related to #127)

stumitchell commented 5 years ago

Hi we have this problem with times coming out of our Postgres database as the following 2019-03-19T09:04:15.071696+00:00 and format/parse can't parse this

countgizmo commented 5 years ago

We're having problems with fractions as well. A bunch of date producers will generate 6-digit fractions, which cljs-time cannot parse because of 3-digit fraction limit.

As per Wikipedia article: "There is no limit on the number of decimal places for the decimal fraction."

My guess is: fractions can be or varied length (unlike milliseconds).