iamkun / iamkun/dayjs

Best way to get "This Weekend" or "Next Weekend" ?

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

Description

What's the most efficient way to get "This Weekend" or "Next Weekend" (in North America?) ?

Essentially "This Weekend" means Saturday and Sunday coming up (in a few days), although in some contexts (e.g. an app showing events) sometimes this also includes Friday. Similarily, "Next Weekend" is the same thing but add on another week.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing Day.js's existing date and time APIs and plugins to determine how weekend ranges are currently represented. Clarify the definitions of “This Weekend” and “Next Weekend,” including whether Friday is included, then establish the desired API behavior and tests before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.