GithubHelp home page GithubHelp logo

Comments (4)

kengz avatar kengz commented on May 28, 2024 1

yeah that'd be crazy, for example: last week would give a pair of start and end dates with a 7-day interval. Like @matthewmueller mentioned, there's 3 types of time-parser usage:

  • scheduling (this repo): give a single point in time, future or past
  • range: a generalization of scheduling = gives more than one point in time
  • cron: gives a cron time pattern, mainly to schedule a cron job.

Of course, apart from these, we need a sufficiently good natural language parsing. This shan't requirement any fancy NLP.

I think imaginable that all these can be unified under a single project?

from date.

matthewmueller avatar matthewmueller commented on May 28, 2024

Haha yah for sure. I see this lib as handling the "point in time" dates. There's also a need for:

  • intervals
  • ranges

I started an intervals library based off this: https://github.com/matthewmueller/every but i'm not aware of any libs that handle ranges.

This lib will need a better way to extend the vocabulary to allow for things like anytime between, etc.

from date.

cold-logic avatar cold-logic commented on May 28, 2024

Just throwing this out there for anyone else who's looking:
http://gf3.github.io/moment-range/

from date.

0xgeert avatar 0xgeert commented on May 28, 2024

Anyone ever attempted this?

from date.

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.