support signed times

Patch provides support for positive and negative signed times. Unit and doc tests are included.