Comments (8)
Thank you for letting me know about your problem.
Sure! German date pattern can be implemented, and I really like to do it.
It's on my to-do list. I'll work on this soon.
from chrono.
thx. i'll report back then when i have implemeted this into webos
from chrono.
I scanned through my mails a bit and in germany we also often write "wir treffen uns am 15." instead of "we'll meet us on the 15th" or we use "1." instead of "1th", so i added this . to the DateOnlyParser, and it works now :)
function DateOnlyParser(text,ref,opt){var PATTERN=/(\W|^)(the\s*)?([0-9]{1,2})(th|rd|nd|st|\.)(\W|$)/i;
But i couldn't get "wir treffen uns am 15. September" to be recognized corectly it only parses "15." and uses this actual month (Fri Nov 15 2013 12:00:00 GMT+0100) .
Instead "wir treffen uns am 15 September" works (Sun Sep 15 2013 12:00:00 GMT+0200) though, but a daynumber without the point is not used in germany.
So "dd. MONTHNAME" does not work for now.
[Update] OK found the other part where the Pattern is named differently: (st|nd|rd|th) so i added it there too
(st|nd|rd|th|\.)
and now it seems to work :)
from chrono.
You should try edit MonthNameLittleEndianParser.js
or MonthNameMiddleEndianParser.js
instead of DateOnlyParser.js
.
from chrono.
yeah i just searched in the minified.js with the other pattern on my webserver, now found it and seems to work- see [update] above
from chrono.
from chrono.
thx a lot - i already tried it and it worked quite good for the date parsing in format dd.mm.yyyy but it does not recognise >>dd.mm.<< (like >>meet me on 15.11. for lunch<< for 15th Nov. ) , it thinks it's a time (like >>hh.mm<<) even if there is an ending point. Also the implemented month and day names (thx for that too) like Montag or Juni are not recognized or on your website: http://wanasit.github.io/pages/chrono/ . If i enter >>monday<< it works. Do i have to call these functions in special way to get names parsed in german ?
from chrono.
Thank you for your feedback.
As you may already know, it's still not perfect.
I'll keep improve it little by little. ( > _ O )
from chrono.
Related Issues (20)
- Information loss using timezone offset
- Invalid parsing: `08/08/2023, 09:15 AM to 08/29/2023, 09:15 AM` HOT 2
- `mon` and `monday` no longer recognized HOT 1
- Accept next tuesday +10 days HOT 4
- Question: auThursday eptember 28 12:00 PM parsed as Sat Oct 07 2023 12:00:00 HOT 2
- Main branch failing test. HOT 3
- Cannot parse Month and Year HOT 3
- Update in package.json structure and Language Customization Feature
- de locale in parse function HOT 2
- Results are sometimes off by one day when setting time in JST but calling from a different timezone HOT 5
- Error parsing of local time in the Common Log Format (06/Nov/2023:06:36:02 +0200) HOT 1
- Incorrect parsing of Chinese for 'tomorrow morning at 8am' HOT 2
- feat: add support to unix timestamp HOT 2
- Incorrect Recognition of "in [month]" pattern HOT 1
- How to tell if result needs the time or not? HOT 2
- parseDate is incorrect for these inputs HOT 4
- Timezone parsing reference not working as expected with `forwardDate: true` specified HOT 1
- Incorrect Parsing of "the money" as a Date HOT 1
- v1.x isCertain returns unexpected values HOT 1
- Wrong result for a simple case HOT 2
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 chrono.