Helper/test utilties for converting time/partwise.