home/categories/scripting/ecnu-icalk-autoskill-skillbank-users-chinese-gpt3-5-8-glm4-7-python日期字符串标准化转换函数-skill-md
scriptingdevelopment

python

编写Python函数,将包含或不包含时间部分的日期字符串(如'2023/6/26 15:00'或'2023/6/26')统一转换为datetime.date对象。

ECNU-ICALK
maintainer
ECNU-ICALK
Updated 3/1/2026
Stars
304
Forks
34
quick start

Installation and usage

编写Python函数,将包含或不包含时间部分的日期字符串(如'2023/6/26 15:00'或'2023/6/26')统一转换为datetime.date对象。

Installation
$ install --globalskills.sh
Usage

Once installed, you can use this skill by running the following command in your terminal:

skills use python