The finest time resolution without this patch is seconds. I needed microseconds, so here you go!
Patch summary:
- The postgresql adapter will write with microsecond precision.
- The string_to_[dummy_time|time] methods in schema_definitions incorporate a microsecond component. If Date._parse can't find a fractional second, then microseconds is set to 0. This affects all adapters but the new method is basically doing what the old ParseDate.parse method was doing implicitly, so other adapters should be fine.
- Test case included.
I tested using both postgresql and mysql (which doesn't really support sub-second resolution) on revision 4487 before sending.
Alex.