sile / jsone

Erlang JSON library
MIT License
291 stars 72 forks source link

Support datetime with fractions of seconds #14

Closed pichi closed 8 years ago

pichi commented 8 years ago

From epgsql you can obtain timestamp with float value of seconds. ISO 8601 allows variant with HH:MM:SS.SSS so this patch adds it for timestamps with float seconds.

DateTime formatting is also rewritten faster (6x BEAM and 9x HiPE) and more memory friendly.

sile commented 8 years ago

This PR seems good. But, in my style, it would be appreciated if you could write -spec for additional internal functions (to clarify author's intention for other readers and dialyzer).

pichi commented 8 years ago

Fixed.

sile commented 8 years ago

Thanks!