Comments (1)
In the string "19700202" there is a year, 19700202, and then no month or day, so the parse fails. There is no backtracking on failed matches looking for alternatives.
If you want to limit yourself to 4-digit years, use the %E4Y format specifier.
from cctz.
Related Issues (20)
- Installation with lubridate package on AIX7.2 failed due to mutex error HOT 10
- MSVC compiler warnings (level 4) cosmetic
- Linker errors on FreeBSD (-lm missing) HOT 1
- Lone test `MakeTime.SysSecondsLimits` fails on FreeBSD/Clang HOT 9
- Build failure on arm64-uwp HOT 8
- cctz fails to build on AIX
- hash support for cctz::time_point<cctz::seconds> ? HOT 2
- %E produces different results in OS X vs Linux HOT 4
- Help with underflows on Fuchsia HOT 3
- Detect if include/cctz/time_zone.h:join_seconds() would overflow the output time_point HOT 2
- [Docs] Possible outdated documentation HOT 1
- Add fraction of seconds support HOT 3
- loadtimezone and n_sec impl is slow in starrocks HOT 4
- [Bug]: time_zone_format.cc causes compilation issues under QNX HOT 1
- Commit 6355d60 broke FreeBSD builds HOT 4
- Help!!! How to get specific current timezone name? HOT 7
- TimeZones.LoadZonesConcurrently test failure on Debian Sid/Trixie HOT 7
- Please, release a new version HOT 2
- Do you have correctness guarantee of time BCE? HOT 2
- How to specific the tzfiles' dir? 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 cctz.