{"record":{"id":"9e94f7358d5f3c7f","repo":"microsoft/qlib","slug":"wrong-input","errorCode":null,"errorMessage":"Wrong input","messagePattern":"Wrong input","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"qlib/utils/time.py","lineNumber":373,"sourceCode":"    ----------\n    date_time : pd.Timestamp\n        the original time\n    direction : str\n        the direction the time are going to\n        - \"backward\" for going to history\n        - \"forward\" for going to the future\n\n    Returns\n    -------\n    pd.Timestamp:\n        the shifted time\n    \"\"\"\n    if direction == \"backward\":\n        return date_time - pd.Timedelta(seconds=1)\n    elif direction == \"forward\":\n        return date_time + pd.Timedelta(seconds=1)\n    else:\n        raise ValueError(\"Wrong input\")\n\n\nif __name__ == \"__main__\":\n    print(get_day_min_idx_range(\"8:30\", \"14:59\", \"10min\", REG_CN))\n","sourceCodeStart":355,"sourceCodeEnd":378,"githubUrl":"https://github.com/microsoft/qlib/blob/79633dd9506ea689e5400dea0197717b5b3d74b7/qlib/utils/time.py#L355-L378","documentation":"Error \"Wrong input\" thrown in microsoft/qlib.","triggerScenarios":"This error is raised at qlib/utils/time.py:373 when the guard condition fails: \"Wrong input\". It triggers when the code path receives input or a state that violates the precondition checked at this point — e.g. an unimplemented abstract method being called, an unsupported argument type/value, or an invalid configuration. To avoid it, satisfy the documented precondition before this call: implement the required method in your subclass, or pass a supported value of the expected type as described by the message.","commonSituations":"See trigger scenarios.","solutions":["Check the arguments passed to the time utility; the input could not be parsed.","Pass a valid time string, datetime, or pd.Timestamp as documented."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"79633dd9506ea689e5400dea0197717b5b3d74b7","analyzedAt":"2026-08-15T07:01:27.511Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}