Comments (1)
It also looks like it doesn't properly recognize time zones like PMDT, PMST, and AMT where the time zone name shares the same prefix as PM/AM. (e.g., 2018-09-30 21:09:09 PMDT
or 2018-09-30 21:09:09 PM PMDT
or 2018-09-30 21:09:09 PM AMT
). It looks like when it hits the first P
it goes into the timeWsAMPMMaybe
state, but then when it hits the M
it thinks that it is definitely an AM/PM. At that point it could potentially 'look ahead' at the next rune and if it isn't the end and it's still an alpha character then assume it's a time zone, etc.
https://github.com/araddon/dateparse/blob/master/parseany.go#L1397
from dateparse.
Related Issues (20)
- can't parse float timestamp HOT 1
- Not finding time for CET with millisecond and time with nanosecond
- support bc time ?
- Suffixes are not supported in some formats
- Date format of DD.MM.YYYY HH:MM:SS not supported HOT 3
- Timezone 'Z' not parsed for time string with milliseconds after period
- [Feature] - Allow find all date within a string
- Support ":" as separator for fractional seconds in the absence of a zone offset
- Support eurodate format (dd-mmm-yy with a digit month) HOT 2
- Support "yyyy mmm dd" dates where mmm is an alpha literal
- Support combined datetime format with subseconds (yyyyMMddhhmmss.SSS)
- [BUG] some coma-separated words are considered as a time HOT 1
- [BUG] Doesn't it support parser `31 ott 2021 23:37:13 UTC` ?
- Issues with parsing 12:xx am
- Parsing failed for 31-Oct-22
- [BUG] not work for small unix timestamp like 57600000
- Cannot parse "13-02-2015", but successfully parses "13/02/2015"
- can't parse Thu Jan 28 2021 15:28:21 GMT+0000 (Coordinated Universal Time)
- Does not respect offset for format (time) UTC[+-]NNNN
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 dateparse.