def METHOD_NAME(value):
    """
    Parse datetime values from a string.
    Able to distinguish between timestamp and iso format.
    Args:
        value(str): unformatted time value
    Returns:
        int | datetime | None: formatted time value
    """
    return int(value) if value.isdigit() else parse_datetime(value)