File tree Expand file tree Collapse file tree 5 files changed +23
-1
lines changed
Expand file tree Collapse file tree 5 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ name: OFD文件提取
22tags :
33 - 内容处理
44title : 提取 OFD 信息
5- description : 实现将 OFD 文件的信息进行提取,并以 json 返回
5+ description : 实现将 OFD 文件的信息进行提取,并以 json返回
Original file line number Diff line number Diff line change 1+ # 日期时间戳转换
2+
3+ 日期和毫秒级别时间戳的相互转换,如果输入是日期字符串,则转换为毫秒级别时间戳,如果输入是毫秒级别时间戳,则转换为日期。
4+
5+ ## 参数说明
6+
7+ ### 启动参数
8+ 无
9+
10+ ### 输入参数
11+ | 参数名称 | 参数类型 | 参数说明 | 默认值 |
12+ | -------- | --------| ------------------------------------------------------------------------------------------------| ------ |
13+ | ` input_data ` | string | 日期字符串:格式为"YYYY-MM-DD"或"YYYY-MM-DD <br /><br />HH:MM: SS "(默认视为UTC+8时区),或者毫秒级时间戳,例如"1753795200000") | |
14+
15+ ## 返回说明
16+ - 如果输入是日期字符串,则返回对应的毫秒级时间戳(整数)
17+ - 如果输入是毫秒级时间戳,则返回对应的UTC+8日期字符串(格式:"YYYY-MM-DD HH:MM: SS ")
Original file line number Diff line number Diff line change 1+ name : 日期时间戳转换
2+ tags :
3+ - 内容处理
4+ title : 日期时间戳转换
5+ description : 日期和毫秒级别时间戳的相互转换,如果输入是日期字符串,则转换为毫秒级别时间戳,如果输入是毫秒级别时间戳,则转换为日期
You can’t perform that action at this time.
0 commit comments