Moved pTime_from_DATE and convertTimeT_toDate to namespace.