matthewmueller / matthewmueller/date

Support for before/after

Open
#55 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.5k
Forks
85
PR merge metrics
No merged PRs in 30d

Description

As a follow up to issue #54, I would like to request relative times to be added. This library would become part of an automation system where I would like to schedule actions based on sunrise and sunset times, but with an offset. Examples would be:

10 minutes after sunset

or

next monday 1 hour before sunrise 

So, 'sunrise' and 'sunset' would be calculated as specified in issue #54. This issue would probably only be needed if #54 was implemented.

Thanks again!

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by reviewing issue #54, since this request depends on its sunrise and sunset calculations. Define how the examples “10 minutes after sunset” and “next monday 1 hour before sunrise” should be interpreted, then verify that both relative-time forms work as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.