interval.every can return intervals of inconsistent length

Open
#64 1 comment 0 reactions 0 assignees View on GitHub

@mbostock is already working on this.

Since Aug 18, 2023.

  • #66 by @mbostock — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
backend

Research direction

Read issues #62 and #63 and the open pull request #66 to understand the proposed naming and implementation scope. The issue points to d3.utcMonth.every(9) and asks for corresponding year-month intervals in UTC and local time; done means both variants behave consistently with that request and their interval lengths are covered.

Written by the indexing model from the issue text.

Description

It’s weird that d3.utcMonth.every(9) alternates between 3- and 9-month intervals since the field number resets when the year changes. It’d be more obvious if this irregular interval were called d3.utcYearMonth, like we do with d3.utcMonthDay. Same for local time.

Related #62 #63.

Dominant language
JavaScript
Stars
238
Forks
55
Avg merge
6h 15m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from d3/d3-time

All issues in d3/d3-time

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.