Coder Social home page Coder Social logo

chronicity's People

Contributors

chaitanyagupta avatar fiddlerwoaroof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chronicity's Issues

Problems with month relative calculations

`(chronicity:parse “a month ago” :now (chronicity:make-date 2009 5 31))` signals an error. Ideally it should return 2009-04-30T00:00:00 or 2009-05-31T00:00:00.

More specifically, this is the problem (eval in CHRONICITY package): `(datetime-decr (make-date 2009 5 31) :month)`

Ambiguity in resolving "second"

“Second” can either refer to the unit of time or the ordinal 2nd. Right now, we just assume it is the unit of time and ignore the ordinal.

A possible fix for this is to preprocess the tokens (before calling TOKENS-TO-SPAN) and tag any “second” followed by a repeater to be the ordinal 2nd.

language support

It seems that only English is supported, right? Would it be easy to expand for other languages?

BST timezone parsing issue

Current local-time implementation leads to BST being mapped to historical Samoa subzone instead of British summer time. I've opened a pull request dlowe-net/local-time#89 to address this issue in local-time.

Please review and use new public API when PR is merged.

DATETIME-MONTH+ uses unexported symbol from LOCAL-TIME

DATETIME-MONTH+ uses LOCAL-TIME::INVALID-TIME-SPECIFICATION which is an unexported symbol in the local-time package. Either get the maintainers of local-time to export it or do something else. Cannot make a new release till this is fixed.

Problem with parse "today" and "this day"

parsing "today" or "this day" return now and not the day of now.

(chronicity:parse "today" :now (local-time:encode-timestamp 0 0 30 12 13 2 2020))
@2020-02-13T12:30:00.000000+01:00
(#<CHRONICITY::TOKEN this [GRABBER] {1004470383}>
 #<CHRONICITY::TOKEN day [REPEATER-DAY] {10044703C3}>)

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.