added PM indicator to function and corrected 0 digit placeholders