8 python 日期字符串与 dolphinDB 日期的转换

python读取了csv获取了日期字符串“20230803”或者“2023-08-03”怎么转换为dolphinDB的DATE类型?在python代码中处理

请先 登录 后评论

2 个回答

Flying - It's IT!

https://www.dolphindb.cn/cn/help/200/FunctionsandCommands/FunctionReferences/t/temporalParse.html

请先 登录 后评论
陈无忌
// https://ask.dolphindb.net/question/3432
// python 日期字符串与 dolphinDB 日期的转换
// For one date string
testDate = "2019-01-01"
temporalParse(testDate, "yyyy-MM-dd")

// For a list of date strings
testDateList = ["2019-01-01", "2019-01-02", "2019-01-03"]
temporalParse(testDateList, "yyyy-MM-dd")

希望对您的问题有帮助!

请先 登录 后评论