iamkun / iamkun/dayjs

HalfOfYear plugin

Open
#2,029 2 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

I miss having a "HalfOfYear" plugin, akin to "QuarterOfYear", that would let us work with halves rather than quarters.
A half goes from Jan 1 to June 30 (1), then from July 1st to December 31st.

Implementing this should be straightforward by replicating most of the logic for the QuarterOfYear plugin.

Would there be broader interest in this feature?

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing QuarterOfYear plugin and reading its implementation and tests. Add a corresponding HalfOfYear plugin that represents January 1–June 30 as 1 and July 1–December 31 as 2, then verify the plugin's date operations and formatting behavior with tests matching the quarter plugin.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.