iamkun / iamkun/dayjs

Fiscal year support

Open
#2,488 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Is there an option to configure when a year starts so that `quarter()` gives the correct result.
the `quarter()` API is added with plugins, so are there any plugins to support fiscal year

**Expected behavior**
support for fiscal year.
moment has `fQuarter` https://momentjs.com/docs/#/plugins/fquarter/

Contributor guide

Open the contributing guide

Research direction

Start by reviewing how the quarter() API is provided through plugins and compare the requested behavior with Moment's fQuarter plugin linked in the issue. Done means users can configure when the fiscal year starts and quarter() returns the corresponding fiscal quarter, with the behavior covered by tests.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.