We're updating the issue view to help you get more done. 

Instance Reader to Support Micro/Nanoseconds

Description

Any timestamps with a greater than millisecond precision cannot be handled by the ClouseScript reader:

1 2 > cljs.reader.read_date("2012-12-30T23:20:05.066980000-00:00") > Error: Assert failed: timestamp millisecond field must be in range 0..999 Failed: 0<=66980000<=999 (<= low n high)

Here "2012-12-30T23:20:05.066980000-00:00" is an example of an ordinary timestamp that is returned from Postgres.

ClojureScript reader interprets the nanosecond portion "066980000" as milliseconds and the check here fails:

1 2 3 def parse-and-validate-timestamp ... (check 0 ms 999 "timestamp millisecond field must be in range 0..999")

Environment

N/A

Status

Assignee

Unassigned

Reporter

import

Labels

Approval

None

Patch

None

Priority

Minor