search_dates separates date and hours and minutes

未关闭
#968 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@AdrianAtZyte 已经在做这个了。

开始于 2026年9月27日。

  • #1459 来自 @AdrianAtZyte —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
backend

调研方向

首先,使用 "timestamp">timestamp 24-Aug-2021 11:00 重现报告中的 search_dates 调用,并将其返回的条目与预期的单个合并结果进行比较。跟踪 search_dates 入口点及其日期/时间分离行为;当日期和时间一起返回,同时现有解析行为保持不变时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

search_dates Type: Bug

When I pass the string "timestamp">timestamp 24-Aug-2021 11:00" to search_dates, I would naturally expect it to return [('24-Aug-2021 11:00', datetime.datetime(2021, 8, 24, 11, 0))], however, it actually returns [('11:00', datetime.datetime(2021, 8, 24, 11, 0)), ('24-Aug-2021', datetime.datetime(2021, 8, 24, 0, 0))]. In other words, it separates the date and the hours

主要语言
Python
星标
2.9k
派生
545
平均合并
2 天 4 小时
30 天内合并 PR
17

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

scrapinghub/dateparser 的其他 Issue

查看 scrapinghub/dateparser 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。