ENH: support for nanosecond time in offset and period

This is the continuation of #2555 after it was merged without effect.

Numpy 1.6 compatibility should be included now.