from datetime import datetime


def _parse_p1_datetime(value: str) -> datetime:
    """Parse P1 date time string to datetime."""
    return datetime(
        2000 + int(value[0:2]),
        int(value[2:4]),
        int(value[4:6]),
        int(value[6:8]),
        int(value[8:10]),
        int(value[10:12]),
    )