Documentation: Additional information on difference-between
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- documentation
Research direction
Locate the documentation for difference-between and review its existing explanation of DAY and DATE logotimes. Add the specified YEAR error, leap-day behavior, Julian-date calculation, result ranges, and absolute DATE differences, including the provided example; done when all listed cases are documented accurately.
Written by the indexing model from the issue text.
Description
This stuff needs to be covered in the documentation for difference-between.
When used on logotimes of type "DAY":
- It is an error to ask for differences in years (time:difference-between logotime1 logotime2 "YEAR")
- Differences in units of "DAY" are simply the Julian date (day of the year) of logotime2 minus the Julian date of logotime1, using the year 2000. This means that leap day (February 29) is included. Therefore this code:
time:difference-between (time:create "02-28") (time:create "03-01") "DAY"
produces a result of 2 days. This method also means that difference-between can produce results between -365 and +365 days.
When used on logotimes of type "DATE", differences in units of "DAY" are the absolute number of days between the two dates, so they can be > 365 or <-365.
- Dominant language
- Scala
- Stars
- 8
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NetLogo/Time-Extension
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 68/100
NetLogo/Time-Extension#39 ·
-
NetLogo/Time-Extension#53 · 5 comments · 1 assignee ·
-
documentation
NetLogo/Time-Extension#52 · 9 comments · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
NetLogo/Time-Extension#50 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
NetLogo/Time-Extension#49 ·
All issues in NetLogo/Time-Extension
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ergoplatform/ergodocs#614 ·
-
area:ci enhancement requires-triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
apache/datafusion-comet#6078 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
[VL] madvise(WILLNEED) call fails in MmapFileStream because of wrong calculation of fetching length Openbug triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
chipsalliance/rocket-chip#3831 ·