about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-09-06 22:25:59 -0700
committerbors <bors@rust-lang.org>2013-09-06 22:25:59 -0700
commit3e6de6b7da8ee88bf84b0e217900051334be08da (patch)
tree16fa08176d4ed0b64ad0462268952dd1713cec9a /src/libsyntax/parse
parent25f3b29c61122bcf160d273348327723cd783419 (diff)
parent3c30ecb706dc32257d1ec6bdcb0c88eb924483dd (diff)
downloadrust-3e6de6b7da8ee88bf84b0e217900051334be08da.tar.gz
rust-3e6de6b7da8ee88bf84b0e217900051334be08da.zip
auto merge of #9016 : sfackler/rust/nanoseconds, r=alexcrichton
The ISO 8601 standard does not mandate any specific precision for
fractional seconds, so this accepts input of any length, ignoring the
part after the nanoseconds place. It may be more correct to round with
the tenths of nanoseconds digit, but then we'd have to deal with
carrying the round through the entire Tm struct (e.g. for a time like
Dec 31 11:59.999999999999).

%f is the format specifier that Python's datetime library uses for
0-padded microseconds so it seemed appropriate here.

cc #2350
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions