Time offset conversions

Fixes #5.