crgz / abbreviated_dates Goto Github PK
View Code? Open in Web Editor NEWClarify abbreviated, ambiguous and incomplete dates meanings according to cultural contexts.
License: MIT License
Clarify abbreviated, ambiguous and incomplete dates meanings according to cultural contexts.
License: MIT License
Recently, I came across the following date format (which was indicating Thursday, 6 October):
Thu, 06/10
However, it does not parse, since /
isn't included as a possible date separator.
This can be resolved by adding /
to the separator
rule in abbreviated_dates.pl
, i.e.
separator --> "-"|"."|"/"|" ".
When trying to parse the following date ranges, I'm getting no results from the abbreviated_dates
parser:
Format | Example |
---|---|
'x, 0 x - x, 0 x' | 'Thursday, 16 Jun - Friday, 17 Jun' |
'x, 0. x - x, 0. x' | 'Thursday, 16. June - Friday, 17. June' |
'x, 0. x - x, 0. x' | 'Thursday, 16. Jun - Friday, 17. Jun' |
'0 x - 0 x' | '16 Jun - 17 Jun' |
'0. x - 0. x' | '16. June - 17. June' |
'0. x. - 0. x.' | '16. Jun. - 17. Jun.' |
'0. x - 0. x' | '16. Jun - 17. Jun' |
'x 0 - x 0' | 'Jun 16 - Jun 17' |
To narrow it down further, here are the relevant single day cases. An x
indicates that the parse was successful:
With only day number and month name:
Date | Success |
---|---|
17 June | x |
17 Jun | |
17 Jun. | x |
17. June | |
17. Jun | |
17. Jun. | |
June 17 | x |
Jun 17 | |
Jun. 17 | x |
With weekday name, day number and month name:
Date | Success |
---|---|
Friday, 17 June | x |
Friday, 17 Jun | |
Friday, 17 Jun. | x |
Friday, 17. June | x |
Friday, 17. Jun | |
Friday, 17. Jun. | x |
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.