Comments (4)
Thanks for reporting.
d = 7-0-2
It's parsed as Time type. I think this is not a valid Time value, so this should be rejected in the parser, maybe 😢
from tinytoml.
I've added a workaround, but this is not a complete fix, I believe.
from tinytoml.
Unfortunately, it is not :( It neither rejects nonsensical date like "2000-2-30", nor accepts valid date like "1800-1-1".
I admit that parsing datetime format in a RFC3339-conforming way is quite hard, though...
from tinytoml.
I know that does not reject nonsense date.
Also, since we're using std::chrono::time_point to represent a time, date before unix epoch is not considered well.
Supporting older date will cause a conversion problem between Gregorian calendar and Julian calendar, which I really don't want to touch.
from tinytoml.
Related Issues (20)
- unordered_map instead of map for tables? HOT 6
- Support for ints in hex/binary format? HOT 4
- gmtime_r fails with MinGW GCC version 4.8.0 HOT 5
- Use sscanf_s for msvc? HOT 1
- Check state of input stream before parsing HOT 1
- support compilation with exception disabled HOT 3
- Suggestion: rename include/toml to include/tinytoml HOT 2
- TOML 5.0 HOT 1
- Suggestion: Add VERSION MACRO.
- Cut a tagged release HOT 1
- FYI: Made a Conan recipe for tinytoml HOT 1
- Can't compile with nvcc 9.0.176 or 10.0.130 HOT 1
- Make "typeToString()" public? HOT 2
- Macro for adding custom types to Value::as<T>()
- Do you have plans to support toml 0.5.0 or 1.00?
- Type type() const { return type_; } Seg fault on Beagle Bone black, ARM target HOT 1
- stack-overflow at "parseFile" HOT 1
- ABRT on __cxxabiv1
- stack-overflow in parse_file
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 tinytoml.