Comments (3)
>>> ciso8601.parse_datetime('07722968')
datetime.datetime(772, 29, 68, 0, 0)
This should also throw an exception.
from ciso8601.
Thanks for reporting this. Right now the library returns None
for some (but not all) invalid input. PRs are welcome :)
from ciso8601.
Fixed in version 2.0.0
(#43).
Attempting to parse this out-of-spec timestamp now raises a ValueError
.
from ciso8601.
Related Issues (20)
- Handle the changes introduced by ISO 8601-1:2019
- Build fails with GCC 10.2 and PyPy 7.3.3 HOT 3
- Support for Python >= 3.9 HOT 2
- Change default branch name to `main`
- FixedOffset.fromutc fails in 2.2.0 under python 3.6
- String 1985-04-12T23:20:50,52Z fails with parse_rfc3339 HOT 3
- Create issue templates
- Manylinux arm wheel HOT 1
- Error building whl HOT 1
- Build fails on python3.9 on gravitron HOT 2
- The optimization of speeding up HOT 2
- Add `datetime.datetime.fromisoformat` to benchmarking
- Migrate CircleCI Docker images to `cimg-python` HOT 1
- Add support for week dates and ordinal dates
- Would you accept a PR to remove unittest2? HOT 2
- Add `backports.datetime_fromisoformat` to benchmarks
- No wheel for Python 3.12 HOT 1
- Test and build using PEP 517-compliant methods
- Failed building wheel for ciso8601 HOT 1
- Incorrect parsing "24" hour HOT 1
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 ciso8601.