rust/src/libextra
Steven Fackler 3c30ecb706 Add fractional second support to str{p,f}time
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
2013-09-05 23:19:41 -07:00
..
crypto librustc: Fix merge fallout. 2013-08-27 18:47:57 -07:00
num std: Implement .rposition() on double-ended iterators with known size 2013-08-30 20:06:26 +02:00
terminfo Rename str::from_bytes to str::from_utf8, closes #8985 2013-09-05 14:17:24 +02:00
arc.rs Use MuextArc and RWArc in docstrings 2013-09-04 09:14:56 +02:00
arena.rs Enabled unit tests in std and extra. 2013-08-22 20:02:20 -07:00
base64.rs Rename str::from_bytes to str::from_utf8, closes #8985 2013-09-05 14:17:24 +02:00
bitv.rs Rename str::from_bytes to str::from_utf8, closes #8985 2013-09-05 14:17:24 +02:00
c_vec.rs Enabled unit tests in std and extra. 2013-08-22 20:02:20 -07:00
comm.rs Remove old tests and code for select 2013-08-04 15:11:56 -07:00
container.rs remove obsolete foreach keyword 2013-08-03 22:48:02 -04:00
dlist.rs auto merge of #8884 : blake2-ppc/rust/exact-size-hint, r=huonw 2013-09-03 06:56:05 -07:00
ebml.rs Rename str::from_bytes to str::from_utf8, closes #8985 2013-09-05 14:17:24 +02:00
enum_set.rs doc: correct spelling in documentation. 2013-08-16 15:41:28 +10:00
extra.rs Deleted fun_treemap 2013-08-20 22:09:47 -04:00
fileinput.rs extra: change XXX to FIXME and elaborate on comments 2013-08-21 17:17:47 -07:00
flate.rs librustc: Remove &const and *const from the language. 2013-08-27 18:46:51 -07:00
flatpipes.rs Enabled unit tests in std and extra. 2013-08-22 20:02:20 -07:00
future.rs Enabled unit tests in std and extra. 2013-08-22 20:02:20 -07:00
getopts.rs char_len is more succinct than count_chars. 2013-08-25 13:16:12 +02:00
hex.rs Rename str::from_bytes to str::from_utf8, closes #8985 2013-09-05 14:17:24 +02:00
io_util.rs extra: change XXX to FIXME and elaborate on comments 2013-08-21 17:17:47 -07:00
json.rs Rename str::from_bytes to str::from_utf8, closes #8985 2013-09-05 14:17:24 +02:00
list.rs extra: Replace for with do { .. } expr where internal iterators are used 2013-08-01 16:54:22 +02:00
md4.rs rm obsolete integer to_str{,_radix} free functions 2013-08-20 22:05:03 -04:00
par.rs std: Rename Iterator.transform -> .map 2013-08-10 07:33:21 -07:00
priority_queue.rs librustc: Ensure that type parameters are in the right positions in paths. 2013-08-27 18:47:57 -07:00
rc.rs rc: from_{owned,const} -> from_{send,freeze} 2013-08-01 04:39:00 -04:00
ringbuf.rs std/extra: Add ExactSize for Bitv, DList, RingBuf, Option iterators 2013-09-01 18:20:24 +02:00
rl.rs Adjust callbacks in the libraries for the new type of extern fns 2013-08-21 10:50:42 -04:00
semver.rs drop some redundant Ord method implementations 2013-08-29 14:24:24 -05:00
serialize.rs remove obsolete foreach keyword 2013-08-03 22:48:02 -04:00
smallintmap.rs std: merge Iterator and IteratorUtil 2013-08-10 07:02:17 -07:00
sort.rs vec: rm obsolete zip and zip_slice 2013-08-15 21:12:34 -04:00
stats.rs librustc: Fix problem with cross-crate reexported static methods. 2013-08-27 18:47:59 -07:00
sync.rs Cleanup concurrency tests 2013-08-31 11:26:01 -07:00
task_pool.rs Remove the C++ runtime. Sayonara 2013-08-09 16:45:50 -07:00
tempfile.rs remove obsolete foreach keyword 2013-08-03 22:48:02 -04:00
term.rs More spelling corrections. 2013-08-18 08:28:04 +10:00
test.rs extra: Don't overcommit test tasks. Closes #8660 2013-09-05 16:37:10 -07:00
time.rs Add fractional second support to str{p,f}time 2013-09-05 23:19:41 -07:00
treemap.rs librustc: Ensure that type parameters are in the right positions in paths. 2013-08-27 18:47:57 -07:00
unicode.rs Fix building problems in extra::unicode. 2013-08-03 19:57:31 +09:00
url.rs stop treating char as an integer type 2013-09-04 08:07:56 -04:00
uuid.rs Rename str::from_bytes to str::from_utf8, closes #8985 2013-09-05 14:17:24 +02:00
workcache.rs Remove the C++ runtime. Sayonara 2013-08-09 16:45:50 -07:00