Giter Club home page Giter Club logo

Comments (2)

DanielJDufour avatar DanielJDufour commented on June 6, 2024

Thank you for posting this issue. Here's the output when I run extract_dates("R-6/941/KAMDAR ROAD, 01/01/2021", debug=True):

match is {'date': '6/941', 'year': '41', 'month': '9', 'day': '6', 'hour': None, 'minute': None, 'second': None, 'system': None, 'tw_year': None, 'mdy': None, 'dmy': '6/941', 'ymd': None, 'my': None, 'y': None}


match is {'date': '01/01/2021', 'year': '2021', 'month': '01', 'day': '01', 'hour': None, 'minute': None, 'second': None, 'system': None, 'tw_year': None, 'mdy': '01/01/2021', 'dmy': None, 'ymd': None, 'my': None, 'y': None}

completes are [{'year': 41, 'month': 9, 'day': 6}, {'year': 2021, 'month': 1, 'day': 1}]

partials are []
starting datetime_from_dict with {'year': 41, 'month': 9, 'day': 6}
starting normalize_year with 41
starting datetime_from_dict with {'year': 2021, 'month': 1, 'day': 1}
starting normalize_year with 2021
extract_dates returning: [datetime.datetime(1941, 9, 6, 0, 0, tzinfo=<UTC>), datetime.datetime(2021, 1, 1, 0, 0, tzinfo=<UTC>)]

Is your expectation that the result be [datetime.datetime(2021, 1, 1, 0, 0, tzinfo=<UTC>)] and 941 is ignored?

from date-extractor.

sandyjais687 avatar sandyjais687 commented on June 6, 2024

Yes

from date-extractor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.