Comments (2)
Hey @Nukesor, thanks for reaching out and proposing the idea of adding natural language support, then volunteering to work on it.
That's brilliant. I once thought about that at some point, especially when I saw python's dateparser lib, which supports parsing relative dates like what you described.
I like your proposed approach: using a separate module, building the parser with pest
, using a trait for extensibility, and possibly using the features gate.
Feel free to go ahead and make a changeset for your feature. This repo is still being maintained. It's not hyperactive at the moment, but I always want to focus back on this and iterate on the parsing mechanism to optimize for speed.
from dateparser.
Heyo @waltzofpearls .
Turns out, there's a pretty nice and maintained drop-in replacement for chrono-english around named interim.
So, I won't work on this any longer as it perfectly fits my own needs for now :)
Feel free to close this issue. However, if you're still interested in such functionality, you could think about just using interim as well^^
from dateparser.
Related Issues (12)
- `parse` returns datetime with time set to current local time... HOT 2
- parse returns datetime with time set to current local time HOT 2
- Default time for incomplete datetime strings HOT 3
- missing support for a plausable format HOT 4
- Feature Request: replace `chrono` HOT 2
- Convert `anyhow::Result`s in parsing functions to custom error type. HOT 1
- Three date formats HOT 1
- Default date is not configurable HOT 6
- awk mktime date format support
- Add weekday name support for date: Wednesday, 19 May 2027
- Seemingly arbitrary leniency towards commas
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dateparser.