Giter Site home page Giter Site logo

Comments (4)

neauoire avatar neauoire commented on August 28, 2024

If you need to point to addresses in another century, you will need to use the 1902A01 format.
Is that something that you need implemented in the arvelie.h file? I could add support for that if you're using it.

from oscean.

octref avatar octref commented on August 28, 2024

Thanks for the quick answer! I'm implementing a JS version (EDIT: https://github.com/octref/arvelie) to use it on my own website.
I compiled the reference C library, and also notice that:

 arvelie > ./arvelie 03+01
Error: Invalid arvelie date (Expecting 2003-12-31)
 arvelie > ./arvelie 20+02
Error: Invalid arvelie date (Expecting 2020-02-29)

Is that something that you need implemented in the arvelie.h file? I could add support for that if you're using it.

It seems you are handling input of length 5 and 10, so handling input of length 7 would be great, as it must be an arvelie date with full year. I can also send a PR myself.

from oscean.

octref avatar octref commented on August 28, 2024

I have a patch that makes it work this way:

> ./arvelie 1920A01   
1920-01-01
# if year is not 20xx, use full arvelie format
> ./arvelie 1920-01-01
1920A01

Does that look fine to you? If so I'll send a PR.

from oscean.

neauoire avatar neauoire commented on August 28, 2024

as long as it doesn't break compat with the current format sure :)

from oscean.

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.