Git Product home page Git Product logo

text2date's People

Contributors

paulmansour avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

text2date's Issues

False positive with four digit years with leading zeros

The string 200000801 converts as it should with YYYYMMDD. It also converts with YYYYDDMM which is reasonable, if maybe wrong. However it also converts with DDYYYYMM, as it thinks the year 0008 is simply 08, which converts to 2008 which is clearly wrong.

Add Excel format

Add "Excel" format for serial numbers. Or maybe all alphanumeric formats? It's trivial. Or overkill?

Handle Jan, Feb, etc.

Handle Jan, Feb, etc., in fixed and var formats. And January, February, etc., in variable formats.

Add optional anchor year argument

Add a third optional left argument item "anchor year" that defaults to the current ⎕TS year. This will allow two digit years to be evaluated relative to any period in time, not just the current time, with the sliding window. This would useful for 2 digit DOBs from the early 20th century, many of which would be from the 1800s.

False positives with variable width formats

can easily arise because we are combining integer elements before checking them. Thus a 2 digit year can combine with a 4 digit month to produce a valid date. Variable width formats should be (roughly) pre-validated before decoded. That is, months should be 12 and under, days, 31 and under, etc. No need to worry about leap years etc.

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.