Moved pTime_from_DATE to namespace.