Comments (4)
Re: roundDown.
The roundDown method was treating DAY and WEEK as an interval of one regardless of the argument, rounding times down to 0 for the day and dates to the beginning of the week (which could be specified as an argument) for WEEK. I think perhaps we should go ahead and correct the code to follow more rational interpretations, like you've already done for day. Your interpretation of week makes sense.
We should perhaps add a time zeroing function to the library to accomplish what roundDown DAY did, like the private clearInDay function. I'm not sure we need a replacement for the original WEEK code, I guess we can add it in to the library if ever we do.
from exhibit3.
re: roundUp.
Your interpretation of its intended results is fine, but the implementation itself is naïve. The pieces up through DAY passed fine for me because they are strictly correct, but when it gets to month, the numbers are wrong (month is defined as 31 days long), so adding 10 'months' becomes problematic in two ways, first because it's adding 310 days instead of ten calendar months, second because it's adding ten months to 0 where 0 means January 1, which brings it into November instead of October. The same type of naïve issue appears to be at work with all date units from month and beyond.
from exhibit3.
Re: ISO 8601
No, let's not bother with fractional times. It's apparently been entirely unnecessary up until now. Let's add it when and if we need it, but I don't think we'll need to.
from exhibit3.
This bug is too stale for me to remember details, but it seems like modifying the week rounding code needs to take place, and the code for rounding up for durations longer than days needs to be fixed to stop being naïve.
from exhibit3.
Related Issues (20)
- Feature Request: Enable Map MarkerClusterer HOT 1
- script injection attack HOT 1
- $(document).one() in event registration precludes reinitialization HOT 2
- Exhibit history mechanism inappropriately clears query portion of url
- Reconsider use of jquery().data() methd HOT 4
- History breaks in IE9 HOT 15
- Toolbox button placement is incorrect
- Broken in IE9 HOT 1
- autoposition
- Restore original license and copyright notice HOT 3
- Multi-Term-Query for Text Search Facet HOT 2
- dist demos use wrong path HOT 1
- Edge case for lens template processing in Google Map view HOT 8
- Clarify roles of Debug.exception and Debug.warn
- Lens template rendering bug HOT 1
- Auto-size bubbles
- Restore ex:converter-type functionality to exhibit3 HOT 1
- Replace deprecated jQuery methods
- Does data data-ex-collectionID works? HOT 2
- Inconsistent use of history leads to redundant rendering 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 exhibit3.