add function to easily convert time specifications to A2Billing's format