Comments (2)
The %Y
specifier is defined as a four-digit year so that you can do things like %Y%m%d
and parse digits with no separator.
d3.utcParse("%Y%m%d")("20200101") // 2020-01-01T00:00:00.000Z
If we want to parse variable-digit years then we would need a different specifier.
from d3-time-format.
The version of D3 we are using is - D3 v3.4.12 - http://d3js.org/
Sample example: https://jsbin.com/rubufenida/edit?html,js,console,output
Is there any specifier which we can use for year "10000" as specified in above sample? Because we didn't find any in - https://observablehq.com/@bumbeishvili/d3-timeformat-playground
If not what is the alternative which we can use.
Please let us know.
from d3-time-format.
Related Issues (20)
- Parser returned from timeParse returns a different time zone HOT 1
- Time formats in d3
- Missing Semester HOT 4
- Cannot require() starting with version 4 HOT 3
- How do I get at the locales? HOT 1
- Doc: %S range HOT 3
- %Z behavior does not match strftime HOT 2
- timezone without 00, e.g +08 , instead of +0800? HOT 1
- d3.timeFormat("%Y-%U") return value is inconsistent with python 3 strftime for "2023-01-01" HOT 6
- numeric month without leading 0 HOT 1
- formatUTCWeekNumberISO and formatWeekNumberISO return incorrect results at edge of the year HOT 4
- d3.timeFormat is not a function - Possible unhandled promise rejection HOT 1
- Parsing Negative Unix Values Fail HOT 1
- remove dev dependency on d3-queue
- Invalid string parses but results in unexpected date HOT 1
- Full ISO 8601 support?
- ISO week year (%g and %G) parsing and formatting is inconsistent.
- ch
- Locale files not exported 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 d3-time-format.